次の方法で共有


Console.WriteLine メソッド (Char , Int32, Int32)

指定した Unicode 文字の部分配列を標準出力ストリームに書き込み、続けて現在の行終端記号を書き込みます。

Overloads Public Shared Sub WriteLine( _
   ByVal buffer() As Char, _   ByVal index As Integer, _   ByVal count As Integer _)
[C#]
public static void WriteLine(char[] buffer,intindex,intcount);
[C++]
public: static void WriteLine(__wchar_tbuffer __gc[],intindex,intcount);
[JScript]
public static function WriteLine(
   buffer : Char[],index : int,count : int);

パラメータ

  • buffer
    Unicode 文字の配列。
  • index
    buffer 内の開始位置。
  • count
    書き込む文字の数。

例外

例外の種類 条件
ArgumentNullException buffer が null 参照 (Visual Basic では Nothing) です。
ArgumentOutOfRangeException index または count が 0 未満です。
ArgumentException indexcount を足した数が、この buffer 内にない位置を示しています。
IOException I/O エラーが発生しました。

解説

このメソッドは、 bufferindex を開始位置として count 文字を標準出力ストリームに書き込みます。

行終端記号の詳細については、パラメータを受け取らない WriteLine メソッドの解説を参照してください。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ, Common Language Infrastructure (CLI) Standard

参照

Console クラス | Console メンバ | System 名前空間 | Console.WriteLine オーバーロードの一覧 | Read | ReadLine | Write