Aracılığıyla paylaş


FilePickerSelectedFilesArray.IndexOf(StorageFile, UInt32) Method

Definition

Retrieves the index of a specified StorageFile object in the collection.

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

Parameters

value
StorageFile

The object to find in the collection.

index
UInt32

unsigned int

uint32_t

The zero-based index of the object if found. Zero is returned if the object is not found.

Returns

Boolean

bool

True if the object is found; 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