PagesSection.TagMapping Property
.NET Framework (current version)
Gets a collection of TagMapInfo objects.
Assembly: System.Web (in System.Web.dll)
<ConfigurationPropertyAttribute("tagMapping")> Public ReadOnly Property TagMapping As TagMapCollection
Property Value
Type: System.Web.Configuration.TagMapCollectionA TagMapCollection of TagMapInfo objects.
The TagPrefixInfo object has no corresponding directive on an ASP.NET page. The TagPrefixInfo objects allow you to remap tag type names to other type names at compile time.
The following code example shows how to use the TagMapping property.
' Get all current TagMappings in the collection. Dim k As Int32 For k = 1 To pagesSection.TagMapping.Count Console.WriteLine("TagMapping {0}:", i) Console.WriteLine(" TagTypeName = '{0}'", _ pagesSection.TagMapping(k).TagType) Console.WriteLine(" MappedTagTypeName = '{0}'", _ pagesSection.TagMapping(k).MappedTagType) Next ' Add a TagMapInfo object using a constructor. pagesSection.TagMapping.Add( _ New System.Web.Configuration.TagMapInfo( _ "MyNameSpace.MyControl", "MyNameSpace.MyOtherControl"))
.NET Framework
Available since 2.0
Available since 2.0
Show: