Share via


DeviceInformationCollection.IndexOf(DeviceInformation, UInt32) Method

Definition

Returns the index of the specified DeviceInformation object in the collection.

public:
 virtual bool IndexOf(DeviceInformation ^ value, [Out] unsigned int & index) = IVectorView<DeviceInformation ^>::IndexOf;
bool IndexOf(DeviceInformation const& value, [Out] uint32_t & index);
public bool IndexOf(DeviceInformation value, out uint index);
Public Function IndexOf (value As DeviceInformation, ByRef index As UInteger) As Boolean

Parameters

value
DeviceInformation

The DeviceInformation object in the collection.

index
UInt32

unsigned int

uint32_t

The index.

Returns

Boolean

bool

true if the method succeeded; otherwise, false.

Implements

M:Windows.Foundation.Collections.IVectorView1.IndexOf(0,System.UInt32@) M:Windows.Foundation.Collections.IVectorView1.IndexOf(0,unsigned int@) M:Windows.Foundation.Collections.IVectorView1.IndexOf(0,uint32_t@)

Applies to