Edit

Share via


ServiceModelConfigurationElementCollection<ConfigurationElementType>.Item[] Property

Definition

Gets or sets a property, attribute, or child element of this ConfigurationElement object.

Overloads

Item[Int32]

Gets or sets a property, attribute, or child element of a ConfigurationElement object with the specified index.

Item[Object]

Gets or sets a property, attribute, or child element of a ConfigurationElement object with the specified key.

Item[Int32]

Gets or sets a property, attribute, or child element of a ConfigurationElement object with the specified index.

public:
 property ConfigurationElementType default[int] { ConfigurationElementType get(int index); void set(int index, ConfigurationElementType value); };
public ConfigurationElementType this[int index] { get; set; }
member this.Item(int) : 'ConfigurationElementType with get, set
Default Public Property Item(index As Integer) As ConfigurationElementType

Parameters

index
Int32

The index of the element to be accessed.

Property Value

ConfigurationElementType

The item located at the specified index within the collection.

Exceptions

index is null.

Applies to

Item[Object]

Gets or sets a property, attribute, or child element of a ConfigurationElement object with the specified key.

public:
 virtual property ConfigurationElementType default[System::Object ^] { ConfigurationElementType get(System::Object ^ key); void set(System::Object ^ key, ConfigurationElementType value); };
public virtual ConfigurationElementType this[object key] { get; set; }
member this.Item(obj) : 'ConfigurationElementType with get, set
Default Public Overridable Property Item(key As Object) As ConfigurationElementType

Parameters

key
Object

The key of the element to be accessed.

Property Value

ConfigurationElementType

The item located at the specified key within the collection.

Exceptions

key is null.

key is not found.

Applies to