WebViewControl.CapturePreviewToStreamAsync(IRandomAccessStream) WebViewControl.CapturePreviewToStreamAsync(IRandomAccessStream) WebViewControl.CapturePreviewToStreamAsync(IRandomAccessStream) WebViewControl.CapturePreviewToStreamAsync(IRandomAccessStream) WebViewControl.CapturePreviewToStreamAsync(IRandomAccessStream) Method

Definition

Creates an image of the current control contents and writes it to the specified stream.

For more info, see Windows.Web.UI.IWebViewControl

public : IAsyncAction CapturePreviewToStreamAsync(IRandomAccessStream stream)
IAsyncAction CapturePreviewToStreamAsync(IRandomAccessStream stream) const;
public IAsyncAction CapturePreviewToStreamAsync(IRandomAccessStream stream)
Public Function CapturePreviewToStreamAsync(stream As IRandomAccessStream) As IAsyncAction
Windows.Web.UI.Interop.WebViewControl.capturePreviewToStreamAsync(stream).done( /* Your success and error handlers */ );

Parameters

stream
IRandomAccessStream IRandomAccessStream IRandomAccessStream

The stream to write the image to.

Returns

An asynchronous action to await the capture operation.