Jaa


IBindableVector.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

When programming with .NET, this interface is hidden and developers should use the System.Collections.IList interface.

Applies to

See also