Compartilhar via


ShareExtensions.RequestAsync Método

Definição

Sobrecargas

RequestAsync(IShare, String)

Mostrar a interface do usuário do sistema operacional para compartilhar texto.

RequestAsync(IShare, String, String)

Mostrar a interface do usuário dos sistemas operacionais para compartilhar texto.

RequestAsync(IShare, String)

Origem:
Share.shared.cs
Origem:
Share.shared.cs

Mostrar a interface do usuário do sistema operacional para compartilhar texto.

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

Parâmetros

share
IShare

O objeto no qual esse método é invocado.

text
String

O texto a ser compartilhado.

Retornos

Um Task objeto com o status atual da operação assíncrona.

Aplica-se a

RequestAsync(IShare, String, String)

Origem:
Share.shared.cs
Origem:
Share.shared.cs

Mostrar a interface do usuário dos sistemas operacionais para compartilhar texto.

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

Parâmetros

share
IShare

O objeto no qual esse método é invocado.

text
String

O texto a ser compartilhado.

title
String

O título a ser exibido na caixa de diálogo de compartilhamento do sistema operacional.

Retornos

Um Task objeto com o status atual da operação assíncrona.

Aplica-se a