ShareExtensions.RequestAsync 方法

定义

重载

RequestAsync(IShare, String)

显示操作系统的用户界面以共享文本。

RequestAsync(IShare, String, String)

显示操作系统用户界面以共享文本。

RequestAsync(IShare, String)

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

显示操作系统的用户界面以共享文本。

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

参数

share
IShare

调用此方法的对象。

text
String

要共享的文本。

返回

具有 Task 异步操作的当前状态的对象。

适用于

RequestAsync(IShare, String, String)

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

显示操作系统用户界面以共享文本。

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

参数

share
IShare

调用此方法的对象。

text
String

要共享的文本。

title
String

在操作系统共享对话框中显示的标题。

返回

具有 Task 异步操作的当前状态的对象。

适用于