StreamWriter.WriteAsync Method (Char)
Writes a character to the stream asynchronously.
Assembly: mscorlib (in mscorlib.dll)
[ComVisibleAttribute(false)] [HostProtectionAttribute(SecurityAction.LinkDemand, ExternalThreading = true)] public override Task WriteAsync( char value )
The character to write to the stream.
Return ValueType: System.Threading.Tasks.Task
A task that represents the asynchronous write operation.
The following example shows how to write a single character (the letter "a") to a text file by using themethod.
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