WebView.CaptureSelectedContentToDataPackageAsync 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.
Asynchronously gets a DataPackage that contains the selected content within the WebView.
public:
virtual IAsyncOperation<DataPackage ^> ^ CaptureSelectedContentToDataPackageAsync() = CaptureSelectedContentToDataPackageAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<DataPackage> CaptureSelectedContentToDataPackageAsync();
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<DataPackage> CaptureSelectedContentToDataPackageAsync();
function captureSelectedContentToDataPackageAsync()
Public Function CaptureSelectedContentToDataPackageAsync () As IAsyncOperation(Of DataPackage)
Returns
When this method completes, it returns the selected content as a DataPackage.
- Attributes
Remarks
You can use this method during a share operation to send the selected WebView content to a target app. This method is asynchronous, so you must use a deferral to prevent your DataRequested event handler from returning before the asynchronous call is complete. Call DataRequestedEventArgs.Request.GetDeferral to create the deferral and DataRequestDeferral.Complete to end it.
Applies to
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for