Windows Dev Center

VectorView::IndexOf Method

Searches for the specified item in the current VectorView, and if found, returns the index of the item.

virtual bool IndexOf(
   T value,
   unsigned int* index
);

value

The item to find.

index

The zero-based index of the item if parameter value is found; otherwise, 0.

The index parameter is 0 if either the item is the first element of the VectorView or the item was not found. If the return value is true, the item was found and it is the first element; otherwise, the item was not found.

true if the specified item is found; otherwise, false.

Header: collection.h

Namespace: Platform::Collections

Other Resources

VectorView Class
Show:
© 2015 Microsoft