Table of Contents

ToEncodedStringAsync Method

Definition

Namespace
Cuemon.Extensions.IO
Assemblies
Cuemon.Extensions.IO.dll
Source
src/Cuemon.Extensions.IO/StreamExtensions.cs

ToEncodedStringAsync(Stream, Action<AsyncStreamEncodingOptions>)

Converts the specified value to a string.

public static Task<string> ToEncodedStringAsync(this Stream value, Action<AsyncStreamEncodingOptions> setup = null)

Parameters

value Stream

The Stream to extend.

setup Action<AsyncStreamEncodingOptions>

The AsyncStreamEncodingOptions which may be configured.

Returns

Task<string>

A task that represents the asynchronous operation. The task result contains a string containing the result of the specified value.

Remarks

Exceptions

ArgumentNullException

value cannot be null.

InvalidEnumArgumentException

setup was initialized with an invalid Preamble.