Jaa


IBindableVectorView.IndexOf(Object, UInt32) Method

Definition

Returns the index of a specified item in the vector.

public:
 bool IndexOf(Platform::Object ^ value, [Out] unsigned int & index);
bool IndexOf(IInspectable const& value, [Out] uint32_t & index);
public bool IndexOf(object value, out uint index);
Public Function IndexOf (value As Object, ByRef index As UInteger) As Boolean

Parameters

value
Object

Platform::Object

IInspectable

The item to find in the vector.

index
UInt32

unsigned int

uint32_t

The zero-based index of the item if found. 0 is returned if the item is not found, so be sure to check the return value.

Returns

Boolean

bool

true if the item is found; false if the item is not found.

Remarks

This interface supports the creation of data bindable collections in C++. When programming with .NET, you should use ObservableCollection(Of T) or implement IList and INotifyCollectionChanged.

Applies to

See also