ContentProvider.GetContentStreamAsync(String) Method
Definition
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.
Get a stream to the content for the given path. If the path is invalid or nothing is found then throw an ArgumentException exception.
public System.Threading.Tasks.Task<System.IO.Stream> GetContentStreamAsync (string path);
abstract member GetContentStreamAsync : string -> System.Threading.Tasks.Task<System.IO.Stream>
override this.GetContentStreamAsync : string -> System.Threading.Tasks.Task<System.IO.Stream>
Public Function GetContentStreamAsync (path As String) As Task(Of Stream)
Parameters
- path
- String
Case insensitive path indicating the content to receive. The path
is a relative URI path using "/" as the separator, for example /path1/path2
.
It is up to the IContentProvider as to how this path is mapped
to a particular piece of content.
Returns
An open, readable stream which must be closed by the caller.
Implements
Applies to
Azure SDK for .NET