次の方法で共有


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

オブジェクトが見つかった場合は、0 から始まるインデックス。 オブジェクトが見つからない場合は、0 が返されます。

戻り値

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

適用対象