-api-id | -api-type |
---|---|
P:Windows.Storage.Pickers.FileOpenPicker.FileTypeFilter |
winrt property |
Gets the collection of file types that the file open picker displays.
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.
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]
File picker sample, fileOpenPicker class, fileExtensionVector class