语言

TransformerInfo.Type 属性

定义

获取或设置扩展类的 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 一部分。

注解

配置系统不会验证指定的类型,以确保使用有效的类型名称。 但是,加载网页时,无效类型将导致异常。

适用于

另请参阅