NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Console.WriteLine (Char[], Int32, Int32)

Writes a subarray of characters followed by a line terminator to Console.Out that is set to the system's standard output stream by default.

[Visual Basic]
Overloads Public Shared Sub WriteLine( _
   ByVal buffer() As Char, _
   ByVal index As Integer, _
   ByVal count As Integer _
)
[C#]
public static void WriteLine(
   char[] buffer,
   int index,
   int count
);
[C++]
public: static void WriteLine(
   __wchar_t* buffer[],
   int index,
   int count
);
[JScript]
public static function WriteLine(
   buffer : Char[],
   index : int,
   count : int
);

Parameters

buffer
The character array from which data is read.
index
The index into buffer at which to begin reading.
count
The maximum number of characters to write.

Exceptions

Exception Type Condition
ArgumentException buffer is null.Either index or index + count is not a valid index of buffer.count is less than 0.
IOException An I/O error occurs.

Remarks

The default line terminator is a carriage return followed by a line feed ("\r\n"). The line terminator can be modified via the NewLine property of Console.Out. Characters are read from buffer beginning at index and ending at index + count. All characters are written to the underlying stream unless the end of the underlying stream is reached prematurely.

See Also

Console Class | Console Members | System Namespace | Console.WriteLine Overload List