IVectorView<T>.IndexOf method

Applies to Windows and Windows Phone

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 building Windows Store apps with the Microsoft .NET Framework, this interface is hidden and developers should use the System.Collections.Generic.IReadOnlyList<K,V> interface.

Requirements

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:
© 2014 Microsoft