Windows hardware
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.

IVectorView<T>.IndexOf method

Retrieves the index of a specified item in the vector view.

Syntax


bool IndexOf(
  T^ value, 
  [OutAttribute] unsigned int index
)

Parameters

value

Type: T

The item to find in the vector view.

index (out parameter)

Type: UInt32

If the item is found, this is the zero-based index of the item; otherwise, this parameter is 0.

Return value

Type: Boolean

true if the item is found; otherwise, false.

Remarks

When programming with .NET, this interface is hidden and developers should use the System.Collections.Generic.IReadOnlyList<T> interface.

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.FoundationContract, introduced version 1.0

Namespace

Windows::Foundation::Collections

Metadata

Windows.Foundation.FoundationContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8

Namespace

Windows::Foundation::Collections

Metadata

Windows.winmd

See also

IVectorView<T>

 

 

Show:
© 2016 Microsoft