Write Method (Char[], Int32, Int32)
Collapse the table of content
Expand the table of content

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

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

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

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

'Declaration
Public Overrides Sub Write ( _
	buffer As Char(), _
	index As Integer, _
	count As Integer _
)

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 Nothing.

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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft