Share via


OpenFileRequest Constructors

Definition

Overloads

OpenFileRequest()

Initializes a new instance of the OpenFileRequest class.

OpenFileRequest(String, FileBase)

Initializes a new instance of the OpenFileRequest class with the given title and existing file.

OpenFileRequest(String, ReadOnlyFile)

Initializes a new instance of the OpenFileRequest class with the given title and existing file.

OpenFileRequest()

Source:
Launcher.shared.cs
Source:
Launcher.shared.cs

Initializes a new instance of the OpenFileRequest class.

public:
 OpenFileRequest();
public OpenFileRequest ();
Public Sub New ()

Applies to

OpenFileRequest(String, FileBase)

Source:
Launcher.shared.cs
Source:
Launcher.shared.cs

Initializes a new instance of the OpenFileRequest class with the given title and existing file.

public:
 OpenFileRequest(System::String ^ title, Microsoft::Maui::Storage::FileBase ^ file);
public OpenFileRequest (string title, Microsoft.Maui.Storage.FileBase file);
new Microsoft.Maui.ApplicationModel.OpenFileRequest : string * Microsoft.Maui.Storage.FileBase -> Microsoft.Maui.ApplicationModel.OpenFileRequest
Public Sub New (title As String, file As FileBase)

Parameters

title
String

Title to display on the open dialog.

file
FileBase

File to open.

Remarks

The title might not always be displayed on every platform.

Applies to

OpenFileRequest(String, ReadOnlyFile)

Source:
Launcher.shared.cs
Source:
Launcher.shared.cs

Initializes a new instance of the OpenFileRequest class with the given title and existing file.

public:
 OpenFileRequest(System::String ^ title, Microsoft::Maui::Storage::ReadOnlyFile ^ file);
public OpenFileRequest (string title, Microsoft.Maui.Storage.ReadOnlyFile file);
new Microsoft.Maui.ApplicationModel.OpenFileRequest : string * Microsoft.Maui.Storage.ReadOnlyFile -> Microsoft.Maui.ApplicationModel.OpenFileRequest
Public Sub New (title As String, file As ReadOnlyFile)

Parameters

title
String

Title to display on open dialog.

file
ReadOnlyFile

File to open.

Remarks

The title might not always be displayed on every platform.

Applies to