FolderPicker.FileTypeFilter | fileTypeFilter property

0 out of 1 rated this helpful - Rate this topic

Gets the collection of file types that the folder picker displays.

Syntax


var fileTypeFilter = folderPicker.fileTypeFilter;

Property value

Type: IVector<String> [JavaScript/C++] | System.Collections.Generic.IList<String> [.NET]

A FileExtensionVector object that contains a collection of file types (file name extensions) , such as ".doc" and ".png". File name extensions are stored in this array as string objects.

Examples

The File picker sample demonstrates how to show files of any type in the file picker.


var folderPicker = new Windows.Storage.Pickers.FolderPicker();
folderPicker.suggestedStartLocation = Windows.Storage.Pickers.PickerLocationId.desktop;
folderPicker.fileTypeFilter.replaceAll(["*"]);

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Namespace

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

Metadata

Windows.winmd

See also

FolderPicker class
FileExtensionVector class
FileOpenPicker.FileTypeFilter property

 

 

Build date: 2/25/2013

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.