Share.RequestAsync Method

Definition

Overloads

RequestAsync(ShareFileRequest)

Show the operating system's user interface to share a single file.

RequestAsync(ShareMultipleFilesRequest)

Show the operating system's user interface to share multiple files.

RequestAsync(ShareTextRequest)

Show the operating system's user interface to share text.

RequestAsync(String)

Show the operating system's user interface to share text.

RequestAsync(String, String)

Show the operating system's user interface to share text.

RequestAsync(ShareFileRequest)

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

Show the operating system's user interface to share a single file.

public:
 static System::Threading::Tasks::Task ^ RequestAsync(Microsoft::Maui::ApplicationModel::DataTransfer::ShareFileRequest ^ request);
public static System.Threading.Tasks.Task RequestAsync (Microsoft.Maui.ApplicationModel.DataTransfer.ShareFileRequest request);
static member RequestAsync : Microsoft.Maui.ApplicationModel.DataTransfer.ShareFileRequest -> System.Threading.Tasks.Task
Public Shared Function RequestAsync (request As ShareFileRequest) As Task

Parameters

request
ShareFileRequest

A ShareFileRequest object containing the details of the data to share.

Returns

A Task object with the current status of the asynchronous operation.

Applies to

RequestAsync(ShareMultipleFilesRequest)

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

Show the operating system's user interface to share multiple files.

public:
 static System::Threading::Tasks::Task ^ RequestAsync(Microsoft::Maui::ApplicationModel::DataTransfer::ShareMultipleFilesRequest ^ request);
public static System.Threading.Tasks.Task RequestAsync (Microsoft.Maui.ApplicationModel.DataTransfer.ShareMultipleFilesRequest request);
static member RequestAsync : Microsoft.Maui.ApplicationModel.DataTransfer.ShareMultipleFilesRequest -> System.Threading.Tasks.Task
Public Shared Function RequestAsync (request As ShareMultipleFilesRequest) As Task

Parameters

request
ShareMultipleFilesRequest

A ShareMultipleFilesRequest object containing the details of the data to share.

Returns

A Task object with the current status of the asynchronous operation.

Applies to

RequestAsync(ShareTextRequest)

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

Show the operating system's user interface to share text.

public:
 static System::Threading::Tasks::Task ^ RequestAsync(Microsoft::Maui::ApplicationModel::DataTransfer::ShareTextRequest ^ request);
public static System.Threading.Tasks.Task RequestAsync (Microsoft.Maui.ApplicationModel.DataTransfer.ShareTextRequest request);
static member RequestAsync : Microsoft.Maui.ApplicationModel.DataTransfer.ShareTextRequest -> System.Threading.Tasks.Task
Public Shared Function RequestAsync (request As ShareTextRequest) As Task

Parameters

request
ShareTextRequest

A ShareTextRequest object containing the details of the data to share.

Returns

A Task object with the current status of the asynchronous operation.

Applies to

RequestAsync(String)

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

Show the operating system's user interface to share text.

public:
 static System::Threading::Tasks::Task ^ RequestAsync(System::String ^ text);
public static System.Threading.Tasks.Task RequestAsync (string text);
static member RequestAsync : string -> System.Threading.Tasks.Task
Public Shared Function RequestAsync (text As String) As Task

Parameters

text
String

The text to share.

Returns

A Task object with the current status of the asynchronous operation.

Applies to

RequestAsync(String, String)

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

Show the operating system's user interface to share text.

public:
 static System::Threading::Tasks::Task ^ RequestAsync(System::String ^ text, System::String ^ title);
public static System.Threading.Tasks.Task RequestAsync (string text, string title);
static member RequestAsync : string * string -> System.Threading.Tasks.Task
Public Shared Function RequestAsync (text As String, title As String) As Task

Parameters

text
String

The text to share.

title
String

The title to display on the operating system share dialog.

Returns

A Task object with the current status of the asynchronous operation.

Applies to