指定した Unicode 文字の部分配列を標準出力ストリームに書き込みます。
Overloads Public Shared Sub Write( _
ByVal buffer() As Char, _ ByVal index As Integer, _ ByVal count As Integer _)
[C#]
public static void Write(char[] buffer,intindex,intcount);
[C++]
public: static void Write(__wchar_tbuffer __gc[],intindex,intcount);
[JScript]
public static function Write(
buffer : Char[],index : int,count : int);
パラメータ
- buffer
Unicode 文字の配列。 - index
buffer 内の開始位置。 - count
書き込む文字の数。
例外
例外の種類 | 条件 |
---|---|
ArgumentNullException | buffer が null 参照 (Visual Basic では Nothing) です。 |
ArgumentOutOfRangeException | index または count が 0 未満です。 |
ArgumentException | index に count を足した数が、この buffer 内にない位置を示しています。 |
IOException | I/O エラーが発生しました。 |
解説
このメソッドは、 buffer の index を開始位置として count 文字を標準出力ストリームに書き込みます。
必要条件
プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ, .NET Compact Framework - Windows CE .NET, Common Language Infrastructure (CLI) Standard
参照
Console クラス | Console メンバ | System 名前空間 | Console.Write オーバーロードの一覧 | Read | ReadLine | WriteLine