TextWriter.WriteAsync Method (Char, Int32, Int32)
Writes a subarray of characters to the text string or stream asynchronously.
Assembly: mscorlib (in mscorlib.dll)
[ComVisibleAttribute(false)] [HostProtectionAttribute(SecurityAction.LinkDemand, ExternalThreading = true)] public virtual Task WriteAsync( char buffer, int index, int count )
The character array to write data from.
The character position in the buffer at which to start retrieving data.
The number of characters to write.
Return ValueType: System.Threading.Tasks.Task
A task that represents the asynchronous write operation.
buffer is null.
The index plus count is greater than the buffer length.
index or count is negative.
The text writer is disposed.
The text writer is currently in use by a previous write operation.
Available since 8
Available since 4.5
Portable Class Library
Supported in: portable .NET platforms
Windows Phone Silverlight
Available since 8.0
Available since 8.1