System.Xml.XmlWriter.WriteBase64Async Method

Asynchronously encodes the specified binary bytes as Base64 and writes out the resulting text.

Syntax

public virtual System.Threading.Tasks.Task WriteBase64Async (byte[] buffer, int index, int count)

Parameters

buffer
Byte array to encode.
index
The position in the buffer indicating the start of the bytes to write.
count
The number of bytes to write.

Returns

The task that represents the asynchronous WriteBase64 operation.

Remarks

This is the asynchronous version of XmlWriter.WriteBase64(Byte[], int, int), with the same functionality. To use this method, you must set the XmlWriterSettings.Async flag to true.

Requirements

Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 4.0.0.0