System.Web 2.0.0.0 System.Configuration.ConfigurationElement

The class allows you to programmatically access and modify tag-prefix information stored in a configuration file. It provides the same functionality as the ASP.NET @Register directive. Tag prefixes associate a "namespace" in ASP.NET to the assemblies and namespaces that must be included for custom controls and user controls to work properly. objects are stored as members of a object. The class allows you to programmatically access and modify the controls subsection of the pages section of a configuration file.

objects are added to the collection using the add element and specifying a value for the tagPrefix attribute along with values for other relevant attributes. The other required information varies based on the kind of control you will use with the specified tag prefix:

If it is a user control, you must define the , , and properties.

If it is a custom control, you must define the , , and properties. The property is not required if the control is in the application code directory.

The same tagPrefix value can be used to map to multiple assemblies or namespaces.

When a source is specified, the user control itself must not be in the same directory as the page. If it is, you get a run-time error when you attempt to load the page.

Defines a configuration element containing tag-related information.

- Constructor

  This constructor creates an instance of the class and initializes it using the passed parameters. The parameters for which you specify values depend on the kind of control you refer to with the specified tag prefix. Parameters not required for that tag prefix should be left blank. (Use an empty string.)

  If the control is a user control, you must specify values for the , , and parameters.

  If the control is a custom control, you must specify values for the and parameters. If the control is not in the application code directory, you must also specify the parameter.

  Initializes a new instance of the class using the passed values.

  The tag prefix being mapped to a source file or namespace and assembly.
  The namespace associated with the tag prefix.
  The assembly where the namespace resides.
  The name of the control to be used in the page.
  The name of the file that contains the user control.
  2.0.0.0
- Property
  System.Configuration.ConfigurationProperty("assembly")
  System.String To be added.

  This property specifies the assembly in which the control resides. It applies only to a custom control and is not required if the control is in the application code directory.

  Gets or sets the name of the assembly containing the control implementation.

  2.0.0.0
- Property
  System.Configuration.ConfigurationElementProperty To be added. To be added. To be added. 2.0.0.0
- Method
  System.Boolean `` To be added.

  Compares this instance to another object.

  true if the objects are identical; otherwise, false.

  Object to compare. 2.0.0.0
- Method
  System.Int32 To be added.

  Returns a hash value for the current instance.

  A hash value for the current instance.

  2.0.0.0
- Property
  System.Configuration.ConfigurationProperty("namespace")
  System.String To be added.

  This property specifies the namespace in which the control resides. It applies only to custom controls.

  Gets or sets the namespace in which the control resides.

  2.0.0.0
- Property
  System.Configuration.ConfigurationPropertyCollection To be added. To be added. To be added. 2.0.0.0
- Property
  System.Configuration.ConfigurationProperty("src")
  System.String To be added.

  This property specifies the name and path of the file containing the user control implementation. It applies only to user controls. The path may be relative to the application or the application root.

  The user control itself must not be in the same directory as the page. If it is, you get a run-time error when you attempt to load the page.

  Gets or sets the name and path of the file containing the user control.

  2.0.0.0
- Property
  System.Configuration.ConfigurationProperty("tagName")
  System.String To be added.

  This property specifies the name of the control. It applies only to user controls. This is the value that would follow the tag prefix in the ASP.NET code. For example, "myControl" in <myTag: myControl />.

  Gets or sets the name of the user control.

  2.0.0.0
- Property
  System.Configuration.ConfigurationProperty("tagPrefix", DefaultValue="/", Options=System.Configuration.ConfigurationPropertyOptions.IsRequired)
  System.Configuration.StringValidator(MinLength=1)
  System.String To be added.

  The property defines the alias used for the namespace where the control resides. It applies to user and custom controls. This is the value that would precede the tag name in the ASP.NET code. For example "myTag" in <myTag: myControl />.

  Gets or sets the tag prefix that is being associated with a source file or namespace and assembly.

  2.0.0.0