ServiceModelExtensionCollectionElement<TServiceModelExtensionElement>.Item Property (Type)

 

Gets the item of the specified type within the collection.

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

public TServiceModelExtensionElement this[
	Type extensionType
] { get; }

Parameters

extensionType
Type: System.Type

The type of the item in the collection to retrieve.

Property Value

Type: TServiceModelExtensionElement

A ServiceModelExtensionElement that represents the item located at the specified index within the collection.

Exception Condition
ArgumentNullException

extensionType is null.

ArgumentException

extensionType is invalid.

.NET Framework
Available since 3.0
Return to top
Show: