語言

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 Parts 控制的消費者連接點相符。

適用於