Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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

.NET Framework 1.1

Writes the specified subarray of Unicode characters to the standard output stream.

[Visual Basic]
Overloads Public Shared Sub Write( _
   ByVal buffer() As Char, _
   ByVal index As Integer, _
   ByVal count As Integer _
public static void Write(
 char[] buffer,
 int index,
 int count
public: static void Write(
 __wchar_t buffer __gc[],
 int index,
 int count
public static function Write(
   buffer : Char[],
 index : int,
 count : int


An array of Unicode characters.
The starting position in buffer.
The number of characters to write.


Exception Type Condition
ArgumentNullException buffer is a null reference (Nothing in Visual Basic).
ArgumentOutOfRangeException index or count is less than zero.
ArgumentException index plus count specify a position that is not within buffer.
IOException An I/O error occurred.


This method writes count characters starting at position index of buffer to the standard output stream.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard

See Also

Console Class | Console Members | System Namespace | Console.Write Overload List | Read | ReadLine | WriteLine

© 2014 Microsoft. All rights reserved.