ServiceModelConfigurationElementCollection<ConfigurationElementType>.Item Property (Object)

 

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

Namespace:   System.ServiceModel.Configuration
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public virtual ConfigurationElementType this[
	object key
] { get; set; }

Parameters

key
Type: System.Object

The key of the element to be accessed.

Property Value

Type: ConfigurationElementType

The item located at the specified key within the collection.

Exception Condition
ArgumentNullException

key is null.

KeyNotFoundException

key is not found.

.NET Framework
Available since 3.0
Return to top
Show: