Export (0) Print
Expand All

StringWriter.Write Method (Char[], Int32, Int32)

Writes the specified region of a character array to this instance of the StringWriter.

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

public override void Write(
	char[] buffer,
	int index,
	int count
)

Parameters

buffer
Type: System.Char[]
The character array to read data from.
index
Type: System.Int32
The index at which to begin reading from buffer.
count
Type: System.Int32
The maximum number of characters to write.

ExceptionCondition
ArgumentNullException

buffer is null.

ArgumentOutOfRangeException

index or count is negative.

ArgumentException

(index + count)> buffer. Length.

ObjectDisposedException

The writer is closed.

This method overrides TextWriter.Write.

This method writes count characters of data to this StringWriter from buffer, starting at position index.

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2014 Microsoft