Share via


ShareExtensions.RequestAsync Method

Definition

Overloads

RequestAsync(IShare, String)

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

RequestAsync(IShare, String, String)

Show the operating systems user interface to share text.

RequestAsync(IShare, String)

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

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

public:
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::Task ^ RequestAsync(Microsoft::Maui::ApplicationModel::DataTransfer::IShare ^ share, System::String ^ text);
public static System.Threading.Tasks.Task RequestAsync (this Microsoft.Maui.ApplicationModel.DataTransfer.IShare share, string text);
static member RequestAsync : Microsoft.Maui.ApplicationModel.DataTransfer.IShare * string -> System.Threading.Tasks.Task
<Extension()>
Public Function RequestAsync (share As IShare, text As String) As Task

Parameters

share
IShare

The object this method is invoked on.

text
String

The text to share.

Returns

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

Applies to

RequestAsync(IShare, String, String)

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

Show the operating systems user interface to share text.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::Task ^ RequestAsync(Microsoft::Maui::ApplicationModel::DataTransfer::IShare ^ share, System::String ^ text, System::String ^ title);
public static System.Threading.Tasks.Task RequestAsync (this Microsoft.Maui.ApplicationModel.DataTransfer.IShare share, string text, string title);
static member RequestAsync : Microsoft.Maui.ApplicationModel.DataTransfer.IShare * string * string -> System.Threading.Tasks.Task
<Extension()>
Public Function RequestAsync (share As IShare, text As String, title As String) As Task

Parameters

share
IShare

The object this method is invoked on.

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