IUriToStreamResolver.UriToStreamAsync method

Applies to Windows and Windows Phone

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

Syntax


Function UriToStreamAsync(
  uri As Uri 
) As IAsyncOperation(Of IInputStream)

Parameters

uri

Type: System.Uri [.NET] | Windows::Foundation::Uri [C++]

The URI to translate.

Return value

Type: IAsyncOperation<IInputStream>

When this method returns, the content stream.

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.

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Web
Windows::Web [C++]

Metadata

Windows.winmd

See also

IUriToStreamResolver
WebView.NavigateToLocalStreamUri

 

 

Show:
© 2014 Microsoft