TagPrefixCollection.Add Method (TagPrefixInfo)
.NET Framework (current version)
Adds a TagPrefixInfo object to the collection.
Assembly: System.Web (in System.Web.dll)
Parameters
- tagPrefixInformation
-
Type:
System.Web.Configuration.TagPrefixInfo
The TagPrefixInfo object to add to the collection.
| Exception | Condition |
|---|---|
| ConfigurationException |
The collection must not already contain a TagPrefixInfo object with the same property values. If it does, a ConfigurationException will be thrown.
The following code example shows how to use the Add method. This code example is part of a larger example provided for the PagesSection class.
.NET Framework
Available since 2.0
Available since 2.0
Show: