FilePickerSelectedFilesArray.IndexOf | indexOf method

Applies to Windows and Windows Phone

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

Syntax


var result = filePickerSelectedFilesArray.indexOf(value);
var index = result.index;
var boolean = result.boolean;

Parameters

value

Type: StorageFile

The object to find in the collection.

index (out parameter)

Type: Number [JavaScript] | uint32 [C++]

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

Return value

Type: Boolean [JavaScript] | Platform::Boolean [C++]

True if the object is found; otherwise false.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Storage.Pickers
Windows::Storage::Pickers [C++]

Metadata

Windows.winmd

See also

FilePickerSelectedFilesArray

 

 

Show:
© 2014 Microsoft