共用方式為


FilePickerSelectedFilesArray.IndexOf(StorageFile, UInt32) 方法

定義

擷取集合中指定 StorageFile 物件的索引。

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

參數

value
StorageFile

要在集合中尋找的物件。

index
UInt32

unsigned int

uint32_t

如果找到,則為物件的以零起始的索引。 如果找不到物件,則會傳回零。

傳回

Boolean

bool

如果找到物件,則為 True;否則為 false。

實作

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@)

適用於