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