Share via


IShare.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 systems 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:
 System::Threading::Tasks::Task ^ RequestAsync(Microsoft::Maui::ApplicationModel::DataTransfer::ShareFileRequest ^ request);
public System.Threading.Tasks.Task RequestAsync (Microsoft.Maui.ApplicationModel.DataTransfer.ShareFileRequest request);
abstract member RequestAsync : Microsoft.Maui.ApplicationModel.DataTransfer.ShareFileRequest -> System.Threading.Tasks.Task
Public 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:
 System::Threading::Tasks::Task ^ RequestAsync(Microsoft::Maui::ApplicationModel::DataTransfer::ShareMultipleFilesRequest ^ request);
public System.Threading.Tasks.Task RequestAsync (Microsoft.Maui.ApplicationModel.DataTransfer.ShareMultipleFilesRequest request);
abstract member RequestAsync : Microsoft.Maui.ApplicationModel.DataTransfer.ShareMultipleFilesRequest -> System.Threading.Tasks.Task
Public 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 systems user interface to share text.

public:
 System::Threading::Tasks::Task ^ RequestAsync(Microsoft::Maui::ApplicationModel::DataTransfer::ShareTextRequest ^ request);
public System.Threading.Tasks.Task RequestAsync (Microsoft.Maui.ApplicationModel.DataTransfer.ShareTextRequest request);
abstract member RequestAsync : Microsoft.Maui.ApplicationModel.DataTransfer.ShareTextRequest -> System.Threading.Tasks.Task
Public 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