This topic has not yet been rated - Rate this topic

FileOpenPickerUI.AllowedFileTypes | allowedFileTypes property

Gets a list of file types (extensions) that the user can choose.

Syntax


var allowedFileTypes = fileOpenPickerUI.allowedFileTypes;

Property value

Type: IVectorView<String> [JavaScript/C++] | System.Collections.Generic.IReadOnlyList<String> [.NET]

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.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Namespace

Windows.Storage.Pickers.Provider
Windows::Storage::Pickers::Provider [C++]

Metadata

Windows.winmd

See also

FileOpenPickerUI class

 

 

Build date: 12/4/2012

© 2013 Microsoft. All rights reserved.