TagPrefixElement Class
Contains configuration information for a custom or user control.
Syntax
class TagPrefixElement : CollectionElement
Methods
This class contains no methods.
Properties
The following table lists the properties exposed by the TagPrefixElement
class.
Name | Description |
---|---|
Assembly |
A read-only string value that specifies the name of the assembly in which a custom control implementation resides. This property applies only to custom controls and is not required if the control is in the application code directory. A key property. |
Namespace |
A read-only string value that specifies the namespace in which the custom control resides. This property applies only to custom controls. A key property. |
Src |
A read/write string value that specifies the name and path of the file that contains the implementation of a user control. This property applies only to user controls. The path may be relative to the application or the application root. |
TagName |
A read-only string value that specifies the name of a user control. This property applies only to user controls. This is the value follows the tag prefix in the ASP.NET code (for example, "myControl" in <myTag: myControl />). A key property. |
TagPrefix |
A read-only string value that specifies the tag prefix that is associated with a source file (or namespace and assembly) where the control resides. This property applies to both user and custom controls. This is the value that precedes the tag name in the ASP.NET code (for example, "myTag" in <myTag: myControl />). The default is "/". A key property. |
Subclasses
This class contains no subclasses.
Remarks
Instances of this class correspond to Register directives of the form (<%@ Register %>)
on an ASP.NET page and enable you to specify tag prefixes for user controls.
Instances of this class are contained in the Controls
array property of the TagPrefixInfo class.
Inheritance Hierarchy
TagPrefixElement
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
CollectionElement Class
PagesSection Class
TagPrefixInfo Class