TagMapInfo.TagType 属性

定义

获取或设置正被重新映射的标记的原始类型的名称。

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 应用程序中的所有页面和控件。

注意

此属性的空字符串值将导致配置系统在序列化对象时引发异常。

适用于

另请参阅