TagMapElement Class

Contains a statement that remaps a tag type.

Syntax

class TagMapElement : CollectionElement  

Methods

This class contains no methods.

Properties

The following table lists the properties exposed by the TagMapElement class.

Name Description
MappedTagType A read/write nonempty string value that specifies the name of the type to which the tag is remapped. Note: An empty string value for this property will cause the configuration system to throw an exception when the object is serialized.
TagType A read-only nonempty string value that specifies the name of the original type for the tag that is being remapped. The key property. Note: An empty string value for this property will cause the configuration system to throw an exception when the object is serialized.

Subclasses

This class contains no subclasses.

Remarks

Instances of this class are exposed as members of the TagMapping property on the TagMapInfo class.

Tag remapping, which occurs at compile time, replaces the original tag type (specified by the TagType property) with the mapped type (specified by the MappedTagType property) for all pages and controls in the ASP.NET application in the scope of the configuration file.

Inheritance Hierarchy

CollectionElement

TagMapElement

Requirements

Type Description
Client - IIS 7.0 on Windows Vista
- IIS 7.5 on Windows 7
- IIS 8.0 on Windows 8
- IIS 10.0 on Windows 10
Server - IIS 7.0 on Windows Server 2008
- IIS 7.5 on Windows Server 2008 R2
- IIS 8.0 on Windows Server 2012
- IIS 8.5 on Windows Server 2012 R2
- IIS 10.0 on Windows Server 2016
Product - IIS 7.0, IIS 7.5, IIS 8.0, IIS 8.5, IIS 10.0
MOF file WebAdministration.mof

See Also

System.Web.Configuration.TagMapInfo
CollectionElement Class
PagesSection Class
TagMapInfo Class