IndentedTextWriter.WriteLine 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
WriteLine(Char[], Int32, Int32) |
将后跟行结束符的字符子数组写入文本流。 |
WriteLine(String) |
将后跟行结束符的指定字符串写入文本流。 |
WriteLine(String, Object[]) |
使用与指定语义相同的语义写出后跟行结束符的已格式化字符串。 |
WriteLine(String, Object) |
使用与指定语义相同的语义写出后跟行结束符的已格式化字符串。 |
WriteLine(UInt32) |
将后跟行结束符的 UInt32 的文本表示形式写入文本流。 |
WriteLine(Single) |
将后跟行结束符的 Single 的文本表示形式写入文本流。 |
WriteLine(Object) |
将后跟行结束符的对象的文本表示形式写入文本流。 |
WriteLine(Double) |
将后跟行结束符的 Double 的文本表示形式写入文本流。 |
WriteLine(Int32) |
将后跟行结束符的整数的文本表示形式写入文本流。 |
WriteLine(Char[]) |
将后跟行结束符的字符数组写入文本流。 |
WriteLine(Char) |
将后跟行结束符的字符写入文本流。 |
WriteLine(Boolean) |
将后跟行结束符的 Boolean 的文本表示形式写入文本流。 |
WriteLine() |
写入一个行结束符。 |
WriteLine(String, Object, Object) |
使用与指定语义相同的语义写出后跟行结束符的已格式化字符串。 |
WriteLine(Int64) |
将后跟行结束符的 8 字节整数的文本表示形式写入文本流。 |
WriteLine(Char[], Int32, Int32)
将后跟行结束符的字符子数组写入文本流。
public override void WriteLine (char[] buffer, int index, int count);
override this.WriteLine : char[] * int * int -> unit
Public Overrides Sub WriteLine (buffer As Char(), index As Integer, count As Integer)
参数
- buffer
- Char[]
要从中写出数据的字符数组。
- index
- Int32
在缓冲区中开始索引。
- count
- Int32
要写入的字符数。
适用于
WriteLine(String)
将后跟行结束符的指定字符串写入文本流。
public override void WriteLine (string s);
public override void WriteLine (string value);
override this.WriteLine : string -> unit
override this.WriteLine : string -> unit
Public Overrides Sub WriteLine (s As String)
Public Overrides Sub WriteLine (value As String)
参数
- svalue
- String
要写入的字符串。
适用于
WriteLine(String, Object[])
WriteLine(UInt32)
重要
此 API 不符合 CLS。
将后跟行结束符的 UInt32 的文本表示形式写入文本流。
[System.CLSCompliant(false)]
public override void WriteLine (uint value);
override this.WriteLine : uint32 -> unit
Public Overrides Sub WriteLine (value As UInteger)
参数
- value
- UInt32
要输出的 UInt32。
- 属性
适用于
WriteLine(Single)
将后跟行结束符的 Single 的文本表示形式写入文本流。
public override void WriteLine (float value);
override this.WriteLine : single -> unit
Public Overrides Sub WriteLine (value As Single)
参数
- value
- Single
要写入的单个 。
适用于
WriteLine(Object)
将后跟行结束符的对象的文本表示形式写入文本流。
public override void WriteLine (object value);
override this.WriteLine : obj -> unit
Public Overrides Sub WriteLine (value As Object)
参数
- value
- Object
要写入的对象。
适用于
WriteLine(Double)
将后跟行结束符的 Double 的文本表示形式写入文本流。
public override void WriteLine (double value);
override this.WriteLine : double -> unit
Public Overrides Sub WriteLine (value As Double)
参数
- value
- Double
要写入的双精度值。
适用于
WriteLine(Int32)
将后跟行结束符的整数的文本表示形式写入文本流。
public override void WriteLine (int value);
override this.WriteLine : int -> unit
Public Overrides Sub WriteLine (value As Integer)
参数
- value
- Int32
要写入的整数。
适用于
WriteLine(Char[])
将后跟行结束符的字符数组写入文本流。
public override void WriteLine (char[] buffer);
override this.WriteLine : char[] -> unit
Public Overrides Sub WriteLine (buffer As Char())
参数
- buffer
- Char[]
要写入的字符数组。
适用于
WriteLine(Char)
将后跟行结束符的字符写入文本流。
public override void WriteLine (char value);
override this.WriteLine : char -> unit
Public Overrides Sub WriteLine (value As Char)
参数
- value
- Char
要写入的字符。
适用于
WriteLine(Boolean)
将后跟行结束符的 Boolean 的文本表示形式写入文本流。
public override void WriteLine (bool value);
override this.WriteLine : bool -> unit
Public Overrides Sub WriteLine (value As Boolean)
参数
- value
- Boolean
要写入的 Boolean。
适用于
WriteLine()
写入一个行结束符。
public override void WriteLine ();
override this.WriteLine : unit -> unit
Public Overrides Sub WriteLine ()
适用于
WriteLine(String, Object, Object)
使用与指定语义相同的语义写出后跟行结束符的已格式化字符串。
public override void WriteLine (string format, object arg0, object arg1);
override this.WriteLine : string * obj * obj -> unit
Public Overrides Sub WriteLine (format As String, arg0 As Object, arg1 As Object)
参数
- format
- String
要使用的格式化字符串。
- arg0
- Object
第一个要写入已格式化字符串的对象。
- arg1
- Object
第二个要写入已格式化字符串的对象。
适用于
WriteLine(Int64)
将后跟行结束符的 8 字节整数的文本表示形式写入文本流。
public override void WriteLine (long value);
override this.WriteLine : int64 -> unit
Public Overrides Sub WriteLine (value As Long)
参数
- value
- Int64
要写入的 8 字节整数。