Share via


ShareFileRequest Constructors

Definition

Overloads

ShareFileRequest()

Initializes a new instance of the ShareFileRequest class.

ShareFileRequest(ShareFile)

Initializes a new instance of the ShareFileRequest class with the given file.

ShareFileRequest(FileBase)

Initializes a new instance of the ShareFileRequest class with the given file.

ShareFileRequest(String, ShareFile)

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

ShareFileRequest(String, FileBase)

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

ShareFileRequest()

Source:
Share.shared.cs
Source:
Share.shared.cs

Initializes a new instance of the ShareFileRequest class.

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

Applies to

ShareFileRequest(ShareFile)

Source:
Share.shared.cs
Source:
Share.shared.cs

Initializes a new instance of the ShareFileRequest class with the given file.

public:
 ShareFileRequest(Microsoft::Maui::ApplicationModel::DataTransfer::ShareFile ^ file);
public ShareFileRequest (Microsoft.Maui.ApplicationModel.DataTransfer.ShareFile file);
new Microsoft.Maui.ApplicationModel.DataTransfer.ShareFileRequest : Microsoft.Maui.ApplicationModel.DataTransfer.ShareFile -> Microsoft.Maui.ApplicationModel.DataTransfer.ShareFileRequest
Public Sub New (file As ShareFile)

Parameters

file
ShareFile

The file to share.

Applies to

ShareFileRequest(FileBase)

Source:
Share.shared.cs
Source:
Share.shared.cs

Initializes a new instance of the ShareFileRequest class with the given file.

public:
 ShareFileRequest(Microsoft::Maui::Storage::FileBase ^ file);
public ShareFileRequest (Microsoft.Maui.Storage.FileBase file);
new Microsoft.Maui.ApplicationModel.DataTransfer.ShareFileRequest : Microsoft.Maui.Storage.FileBase -> Microsoft.Maui.ApplicationModel.DataTransfer.ShareFileRequest
Public Sub New (file As FileBase)

Parameters

file
FileBase

The file to share.

Applies to

ShareFileRequest(String, ShareFile)

Source:
Share.shared.cs
Source:
Share.shared.cs

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

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

Parameters

title
String

The title to display on the operating systems share dialog.

file
ShareFile

The file to share.

Applies to

ShareFileRequest(String, FileBase)

Source:
Share.shared.cs
Source:
Share.shared.cs

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

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

Parameters

title
String

The title to display on the operating systems share dialog.

file
FileBase

The file to share.

Applies to