Skip to content

Latest commit

 

History

History
32 lines (19 loc) · 1.48 KB

fileopenpicker_filetypefilter.md

File metadata and controls

32 lines (19 loc) · 1.48 KB
-api-id -api-type
P:Windows.Storage.Pickers.FileOpenPicker.FileTypeFilter
winrt property

Windows.Storage.Pickers.FileOpenPicker.FileTypeFilter

-description

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

-property-value

A fileExtensionVector object that contains a collection of file types (file name extensions) , such as ".doc" and ".png". Using . before the file extension is required (e.g. ".txt") unless specifying only a wildcard "*". See examples below. File name extensions are stored in this array as string objects.

-remarks

-examples

The File picker sample demonstrates how to specify the file types that the user can see and pick from in the file picker.

[!code-csharpall_openpicker_setprops]

[!code-csharpall_openpicker_displayAllTypes]

-see-also

File picker sample, fileOpenPicker class, fileExtensionVector class