TagMapInfo.TagType 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置正被重新映射的标记的原始类型的名称。
public:
property System::String ^ TagType { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("tagType", DefaultValue="", IsKey=true, IsRequired=true)]
[System.Configuration.StringValidator(MinLength=1)]
public string TagType { get; set; }
[<System.Configuration.ConfigurationProperty("tagType", DefaultValue="", IsKey=true, IsRequired=true)>]
[<System.Configuration.StringValidator(MinLength=1)>]
member this.TagType : string with get, set
Public Property TagType As String
属性值
正被重新映射的标记的原始类型的名称。
- 属性
示例
下面的代码示例说明如何使用 TagType 属性。 此代码示例是为 PagesSection 类提供的一个更大示例的一部分。
注解
标记重新映射发生在编译时。 此重新映射会导致使用由属性) 指定的 MappedTagType 映射类型 (,以取代由属性) 指定的 TagType 原始标记类型 (配置文件范围内 ASP.NET 应用程序中的所有页面和控件。
注意
此属性的空字符串值将导致配置系统在序列化对象时引发异常。
适用于
另请参阅
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈