Share via


TagPrefixElement Class [IIS 7 and higher]

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

CollectionElement

   TagPrefixElement

Requirements

Type

Description

Client

Requires IIS 7 on Windows Vista.

Server

Requires IIS 7 on Windows Server 2008.

Product

IIS 7

MOF file

WebAdministration.mof

See Also

Reference

CollectionElement Class [IIS 7 and higher]

PagesSection Class [IIS 7 and higher]

TagPrefixInfo Class [IIS 7]