语言

WebPartTransformerAttribute.GetConsumerType(Type) 方法

定义

返回转换器可以在连接点接受的使用者类型。

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

参数

transformerType
Type

转换器的类型。

返回

Type使用者连接点。

例外

未指定 transformerType。

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

注解

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

适用于