FolderPicker.FileTypeFilter FolderPicker.FileTypeFilter FolderPicker.FileTypeFilter FolderPicker.FileTypeFilter FolderPicker.FileTypeFilter Property

Definition

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

public : IVector<Platform::String> FileTypeFilter { get; }
IVector<winrt::hstring> FileTypeFilter();
public IList<string> FileTypeFilter { get; }
Public ReadOnly Property FileTypeFilter As IList<string>
var iList = folderPicker.fileTypeFilter;

Property Value

IList<string> IList<string> IList<string>

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.

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

See also