TagMapInfo Class
Contains a single configuration tag remapping statement. This class cannot be inherited.
Assembly: System.Web (in System.Web.dll)
The TagMapInfo class allows you to remap the types of tags at compile time. This remapping causes the mapped type to be used in place of the original tag type for all pages and controls in the ASP.NET application in the scope of the configuration file.
The TagMapCollection class allows you to programmatically access and modify the tagMapping subsection of the pages section of a configuration file. Within the tagMappings subsection, you can add and remove mappings between tag types by specifying the fully qualified strong names of the types.
Note: |
|---|
Unlike other attributes and collections in the pages section, tag remapping has no matching ASP.NET page directive. |
The following configuration file excerpt shows how to declaratively specify values for several properties of the TagMapInfo class.
<system.web>
<pages>
<tagMapping>
<add
tagType=
"System.Web.UI.WebControls.WebParts.WebPartManager"
mappedTagType=
"Microsoft.Sharepoint.WebPartPartManager,
MSPS.Web.dll, Version='2.0.0.0'"
/>
</tagMapping>
</pages>
</system.web>
The following code example shows how to use the TagMapCollection class to programmatically modify tag-mapping settings. This code example is part of a larger example provided for the PagesSection class.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Note: