StreamHelper.ReadTextAsync(IRandomAccessStream, Encoding) 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.
Reads stream content as a string.
public static System.Threading.Tasks.Task<string> ReadTextAsync (this Windows.Storage.Streams.IRandomAccessStream stream, System.Text.Encoding encoding = default);
static member ReadTextAsync : Windows.Storage.Streams.IRandomAccessStream * System.Text.Encoding -> System.Threading.Tasks.Task<string>
<Extension()>
Public Function ReadTextAsync (stream As IRandomAccessStream, Optional encoding As Encoding = Nothing) As Task(Of String)
Parameters
- stream
- Windows.Storage.Streams.IRandomAccessStream
Stream to read from.
- encoding
- Encoding
Encoding to use. If set to null, ASCII will be used.
Returns
The stream content