FileExtensionVector.IndexOf | indexOf method

Applies to Windows and Windows Phone

Retrieves the index of a specified file name extension in the collection.

Syntax


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

Parameters

value

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

The file name extension to find in the collection.

index (out parameter)

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

The zero-based index of the file name extension if found. This parameter is set to zero if the file name extension is not found.

Return value

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

True if the file name extension 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

FileExtensionVector

 

 

Show:
© 2014 Microsoft