Find(T) Method
Collapse the table of content
Expand the table of content

KeyedByTypeCollection<TItem>.Find<T> Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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

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

public T Find<T>()

Type Parameters

T

The type of item in the collection to 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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft