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 一部分。
注解
配置系统不会验证指定的类型,以确保使用有效的类型名称。 但是,加载网页时,无效类型将导致异常。