FileOpenPickerUI.AllowedFileTypes Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a list of file types (extensions) that the user can choose.
public:
property IVectorView<Platform::String ^> ^ AllowedFileTypes { IVectorView<Platform::String ^> ^ get(); };
IVectorView<winrt::hstring> AllowedFileTypes();
public IReadOnlyList<string> AllowedFileTypes { get; }
var iVectorView = fileOpenPickerUI.allowedFileTypes;
Public ReadOnly Property AllowedFileTypes As IReadOnlyList(Of String)
Property Value
The list of allowed file types.
Remarks
Because the app that called the file picker (the calling app) can limit the types of files that the user can choose, the app that is providing files (the providing app) can use this method to determine which file types are allowed. For example, if the calling app specifies that only picture file types can be chosen, a music file cannot be added to the file picker's list of chosen files.