Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

IUriToStreamResolver.UriToStreamAsync(Uri) Method

Definition

Namespace:
Windows.Web

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.

Translates a URI to a content stream for use by the WebView.NavigateToLocalStreamUri method.

public:
 IAsyncOperation<IInputStream ^> ^ UriToStreamAsync(Uri ^ uri);
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<IInputStream> UriToStreamAsync(Uri const& uri);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<IInputStream> UriToStreamAsync(System.Uri uri);
function uriToStreamAsync(uri)
Public Function UriToStreamAsync (uri As Uri) As IAsyncOperation(Of IInputStream)

Parameters

uri
Uri Uri

The URI to translate.

Returns

An asynchronous operation object from which, on successful completion, you can retrieve the content stream. If the uri argument is invalid, then the content stream is set to null.

Attributes

Remarks

If you need to perform a seek operation on the content stream, be sure to return an IRandomAccessStream. For example, suppose the stream represents a page with embedded media, and you return the result of a GetInputStreamAt call, which is an IInputStream, but not an IRandomAccessStream. In this case, the media will play, but the user will not be able to change the playback position.

Applies to

See also


Feedback

Was this page helpful?