WebPartTransformerAttribute.GetConsumerType(Type) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回转换器可以在连接点接受的使用者类型。
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 部件控件的使用者连接点匹配。