Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

KeyedByTypeCollection<TItem>::Find<T> Method ()

 

Returns the first item in the collection of a specified type.

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

public:
generic<typename T>
T Find()

Return Value

Type: T

The object of type T if it is a reference type and the value of type T if it is a value type. The default value of the type is returned if no object of type T is contained in the collection: null if it is a reference type and 0 if it is a value type.

Type Parameters

T

The type of item in the collection to find.

.NET Framework
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show:
© 2017 Microsoft