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

消費者連接點的 Type

例外狀況

transformerType 未指定。

transformerType 不是衍生自 WebPartTransformer 類別的物件。

備註

WebPartManager物件和 WebPartConnection 物件會使用 方法來判斷轉換器的取用 GetConsumerType 者類型是否符合Web 組件控制項的取用者連接點。

適用於