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 _
)
[C#]
public static void Write(
 char[] buffer,
 int index,
 int count
);
[C++]
public: static void Write(
 __wchar_t buffer __gc[],
 int index,
 int count
);
[JScript]
public static function Write(
   buffer : Char[],
 index : int,
 count : int
);

Parameters

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

Exceptions

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.

Remarks

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

Requirements

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

Show:
© 2014 Microsoft. All rights reserved.