EN
Il contenuto non è disponibile nella lingua di destinazione, ma solo in inglese.

WebView.CaptureSelectedContentToDataPackageAsync method

Applies to Windows only

Asynchronously gets a DataPackage that contains the selected content within the WebView.

Syntax


public IAsyncOperation<DataPackage> CaptureSelectedContentToDataPackageAsync()

Parameters

This method has no parameters.

Return value

Type: IAsyncOperation<DataPackage>

When this method completes, it returns the selected content as a DataPackage.

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.

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

None supported

Namespace

Windows.UI.Xaml.Controls
Windows::UI::Xaml::Controls [C++]

Metadata

Windows.winmd

See also

WebView
DataPackage

 

 

Mostra:
© 2014 Microsoft