ConfigurationElement.Item Property (String)

 

Gets or sets an attribute with the specified name.

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

public object this[
	string attributeName
] { get; set; }

Parameters

attributeName
Type: System.String

The name of the attribute.

Property Value

Type: System.Object

A ConfigurationAttribute object that has the specified attributeName.

You can also get or set an attribute value by using the GetAttributeValue or SetAttributeValue methods. For best system performance, you should use these methods rather than the Item property.

Return to top
Show: