Edit

Share via


StreamHelper.ReadTextAsync(IRandomAccessStream, Encoding) Method

Definition

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

Applies to