Share via


IExtensionCollection<T>.Find<E> Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Finds the specified extension object in the collection.

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

Syntax

'Declaration
Function Find(Of E) As E
E Find<E>()

Type Parameters

  • E
    The type of extension object.

Return Value

Type: E
The extension object that was found.

Remarks

Find<E> returns an extension that either is an instance of the specified type E or derives from E. If more than one extension implements the specified type, only one of them is returned. The Silverlight implementation returns the most recently added, but this selection is not required of other implementations. If no extension implements the specified type, Find<E> returns nulla null reference (Nothing in Visual Basic).

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.