ConfigurationElement.Attributes Property

 

Gets a configuration attribute collection that contains the list of attributes for this element.

Namespace:   Microsoft.Web.Administration
Assembly:  Microsoft.Web.Administration (in Microsoft.Web.Administration.dll)

public ConfigurationAttributeCollection Attributes { get; }

Property Value

Type: Microsoft.Web.Administration.ConfigurationAttributeCollection

A ConfigurationAttributeCollection object that contains the list of attributes for this element.

You can use the returned ConfigurationAttributeCollection object to modify an attribute value.

The following example obtains the Attributes property value, which is a collection of configuration element attributes. If the name attribute has a value of "TestDemo", the element is removed from the element collection. This code example is part of a larger example provided for the ConfigurationElement class.

Return to top
Show: