IShare.RequestAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin