ConfigurationElement.Item[String] Property

Definition

Gets or sets an attribute with the specified name.

public:
 property System::Object ^ default[System::String ^] { System::Object ^ get(System::String ^ attributeName); void set(System::String ^ attributeName, System::Object ^ value); };
public object this[string attributeName] { get; set; }
member this.Item(string) : obj with get, set
Default Public Property Item(attributeName As String) As Object

Parameters

attributeName
String

The name of the attribute.

Property Value

A ConfigurationAttribute object that has the specified attributeName.

Remarks

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.

Applies to