System.Xml.XmlReader.ReadValueChunkAsync Method

Asynchronously reads large streams of text embedded in an XML document.

Syntax

public virtual System.Threading.Tasks.Task<int> ReadValueChunkAsync (char[] buffer, int index, int count)

Parameters

buffer
The array of characters that serves as the buffer to which the text contents are written. This value cannot be null.
index
The offset within the buffer where the System.Xml.XmlReader can start to copy the results.
count
The maximum number of characters to copy into the buffer. The actual number of characters copied is returned from this method.

Returns

The number of characters read into the buffer. The value zero is returned when there is no more text content.

Remarks

This is the asynchronous version of XmlReader.ReadValueChunk(Char[], int, int), with the same functionality. To use this method, you must set the XmlReaderSettings.Async flag to true.

Requirements

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