GetKeyForItem Method
Collapse the table of content
Expand the table of content

KeyedByTypeCollection(Of TItem).GetKeyForItem Method

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

Gets the type of an item contained in the collection.

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

'Declaration
Protected Overrides Function GetKeyForItem ( _
	item As TItem _
) As Type

Parameters

item
Type: TItem
The item in the collection whose type is to be retrieved.

Return Value

Type: System.Type
The type of the specified item in the collection.

ExceptionCondition
ArgumentNullException

item is Nothing.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft