TransformerInfo.Type 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定一個類別的型別參考,該類別會延伸該 WebPartTransformer 類別。
public:
property System::String ^ Type { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("type", DefaultValue="", IsRequired=true)]
[System.Configuration.StringValidator(MinLength=1)]
public string Type { get; set; }
[<System.Configuration.ConfigurationProperty("type", DefaultValue="", IsRequired=true)>]
[<System.Configuration.StringValidator(MinLength=1)>]
member this.Type : string with get, set
Public Property Type As String
屬性值
一個類別的型別參考,該類別是擴充該 WebPartTransformer 類別的。
- 屬性
範例
以下程式碼範例說明如何使用該 Type 屬性。 此程式碼範例是該型別更大範例 WebPartsSection 的一部分。
備註
組態系統不會驗證指定的類型,以確保使用有效的類型名稱。 然而,無效型別會在網頁載入時產生異常。