语言

WebPartTransformerAttribute.GetProviderType(Type) 方法

定义

返回转换器可以在连接点接受的提供程序类型。

public:
 static Type ^ GetProviderType(Type ^ transformerType);
public static Type GetProviderType(Type transformerType);
static member GetProviderType : Type -> Type
Public Shared Function GetProviderType (transformerType As Type) As Type

参数

transformerType
Type

转换器的类型。

返回

Type提供程序连接点。

例外

未指定 transformerType。

transformerType 不是派生自 WebPartTransformer 类的对象。

注解

对象 WebPartManager 和 WebPartConnection 对象使用 GetProviderType 该方法来确定转换器的提供程序类型是否与 Web 部件控件的提供程序连接点匹配。

适用于