FilePickerFileType Constructors

Definition

Overloads

FilePickerFileType()

Initializes a new instance of the FilePickerFileType class.

FilePickerFileType(IDictionary<DevicePlatform,IEnumerable<String>>)

Initializes a new instance of the FilePickerFileType class.

FilePickerFileType()

Source:
FilePicker.shared.cs
Source:
FilePicker.shared.cs

Initializes a new instance of the FilePickerFileType class.

protected:
 FilePickerFileType();
protected FilePickerFileType ();
Protected Sub New ()

Applies to

FilePickerFileType(IDictionary<DevicePlatform,IEnumerable<String>>)

Source:
FilePicker.shared.cs
Source:
FilePicker.shared.cs

Initializes a new instance of the FilePickerFileType class.

public:
 FilePickerFileType(System::Collections::Generic::IDictionary<Microsoft::Maui::Devices::DevicePlatform, System::Collections::Generic::IEnumerable<System::String ^> ^> ^ fileTypes);
public FilePickerFileType (System.Collections.Generic.IDictionary<Microsoft.Maui.Devices.DevicePlatform,System.Collections.Generic.IEnumerable<string>> fileTypes);
new Microsoft.Maui.Storage.FilePickerFileType : System.Collections.Generic.IDictionary<Microsoft.Maui.Devices.DevicePlatform, seq<string>> -> Microsoft.Maui.Storage.FilePickerFileType
Public Sub New (fileTypes As IDictionary(Of DevicePlatform, IEnumerable(Of String)))

Parameters

fileTypes
IDictionary<DevicePlatform,IEnumerable<String>>

A IDictionary<TKey,TValue> where the key is the platform and the value is a collection of file types that are allowed to be picked by the user.

Remarks

Note that the file types (specified in the fileTypes value) should be identified differently per platform.

Applies to