IExtensionCollection<T>.Find<E> Method

Definition

Finds the specified extension object in the collection.

public:
generic <typename E>
 E Find();
public E Find<E> ();
abstract member Find : unit -> 'E
Public Function Find(Of E) () As E

Type Parameters

E

The type of extension object.

Returns

E

The extension object that was found.

Remarks

IExtensionCollection<T>.Find returns an extension that implements (is or derives from) the specified type. If more than one extension implements the specified type, one is returned. The WCF implementation returns the most recently added, but this is not required of implementations. If no extension implements the specified type, IExtensionCollection<T>.Find returns null.

Applies to