इसके माध्यम से साझा किया गया


FileOpenPickerUI.AllowedFileTypes Property

Definition

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

IVectorView<String>

IReadOnlyList<String>

IVectorView<Platform::String>

IVectorView<winrt::hstring>

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.

Applies to

See also