Skip to content

Latest commit

 

History

History
33 lines (20 loc) · 1.5 KB

iuritostreamresolver_uritostreamasync_1256896073.md

File metadata and controls

33 lines (20 loc) · 1.5 KB
-api-id -api-type
M:Windows.Web.IUriToStreamResolver.UriToStreamAsync(Windows.Foundation.Uri)
winrt method

Windows.Web.IUriToStreamResolver.UriToStreamAsync

-description

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

-parameters

-param 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.

-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.

-examples

-see-also

WebView.NavigateToLocalStreamUri