TextWriter.Write Method (array<Char>[]()[])

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Writes a character array to the text stream.

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)

Syntax

Public Overridable Sub Write ( _
    buffer As Char() _
)
public virtual void Write(
    char[] buffer
)

Parameters

  • buffer
    Type: array<System..::.Char>[]()[]
    The character array to write to the text stream.

Exceptions

Exception Condition
ObjectDisposedException

The TextWriter is closed.

IOException

An I/O error occurs.

Remarks

This method does not search the specified String for individual newline characters (hexadecimal 0x000a) and replace them with NewLine.

This default method calls Write and passes the entire character array. If the character array is nullNothingnullptra null reference (Nothing in Visual Basic), nothing is written.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Platforms

Windows Phone

See Also

Reference

TextWriter Class

Write Overload

System.IO Namespace