IndentedTextWriter.WriteLine 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将后跟行结束符的指定字符串写入文本流。
重载
WriteLine(String, Object, Object) |
使用与指定语义相同的语义写出后跟行结束符的已格式化字符串。 |
WriteLine(Char[], Int32, Int32) |
将后跟行结束符的字符子数组写入文本流。 |
WriteLine(String, Object[]) |
使用与指定语义相同的语义写出后跟行结束符的已格式化字符串。 |
WriteLine(String, Object) |
使用与指定语义相同的语义写出后跟行结束符的已格式化字符串。 |
WriteLine(String) |
将后跟行结束符的指定字符串写入文本流。 |
WriteLine(Single) |
将后跟行结束符的 Single 的文本表示形式写入文本流。 |
WriteLine(Object) |
将后跟行结束符的对象的文本表示形式写入文本流。 |
WriteLine(UInt32) |
将后跟行结束符的 UInt32 的文本表示形式写入文本流。 |
WriteLine(Int32) |
将后跟行结束符的整数的文本表示形式写入文本流。 |
WriteLine(Double) |
将后跟行结束符的 Double 的文本表示形式写入文本流。 |
WriteLine(Char[]) |
将后跟行结束符的字符数组写入文本流。 |
WriteLine(Char) |
将后跟行结束符的字符写入文本流。 |
WriteLine(Boolean) |
将后跟行结束符的 Boolean 的文本表示形式写入文本流。 |
WriteLine() |
写入一个行结束符。 |
WriteLine(Int64) |
将后跟行结束符的 8 字节整数的文本表示形式写入文本流。 |
WriteLine(String, Object, Object)
- Source:
- IndentedTextWriter.cs
- Source:
- IndentedTextWriter.cs
- Source:
- IndentedTextWriter.cs
使用与指定语义相同的语义写出后跟行结束符的已格式化字符串。
public:
override void WriteLine(System::String ^ format, System::Object ^ arg0, System::Object ^ arg1);
public override void WriteLine (string format, object? arg0, object? arg1);
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(Char[], Int32, Int32)
- Source:
- IndentedTextWriter.cs
- Source:
- IndentedTextWriter.cs
- Source:
- IndentedTextWriter.cs
将后跟行结束符的字符子数组写入文本流。
public:
override void WriteLine(cli::array <char> ^ buffer, int index, int count);
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, Object[])
- Source:
- IndentedTextWriter.cs
- Source:
- IndentedTextWriter.cs
- Source:
- IndentedTextWriter.cs
使用与指定语义相同的语义写出后跟行结束符的已格式化字符串。
public:
override void WriteLine(System::String ^ format, ... cli::array <System::Object ^> ^ arg);
public override void WriteLine (string format, params object?[] arg);
public override void WriteLine (string format, params object[] arg);
override this.WriteLine : string * obj[] -> unit
Public Overrides Sub WriteLine (format As String, ParamArray arg As Object())
参数
- format
- String
要使用的格式化字符串。
- arg
- Object[]
要输出的参数数组。
适用于
WriteLine(String, Object)
- Source:
- IndentedTextWriter.cs
- Source:
- IndentedTextWriter.cs
- Source:
- IndentedTextWriter.cs
使用与指定语义相同的语义写出后跟行结束符的已格式化字符串。
public:
override void WriteLine(System::String ^ format, System::Object ^ arg0);
public override void WriteLine (string format, object? arg0);
public override void WriteLine (string format, object arg0);
override this.WriteLine : string * obj -> unit
Public Overrides Sub WriteLine (format As String, arg0 As Object)
参数
- format
- String
格式设置字符串。
- arg0
- Object
要写入已格式化字符串的对象。
适用于
WriteLine(String)
- Source:
- IndentedTextWriter.cs
- Source:
- IndentedTextWriter.cs
- Source:
- IndentedTextWriter.cs
将后跟行结束符的指定字符串写入文本流。
public:
override void WriteLine(System::String ^ s);
public override void WriteLine (string? s);
public override void WriteLine (string s);
override this.WriteLine : string -> unit
Public Overrides Sub WriteLine (s As String)
参数
- s
- String
要写入的字符串。
适用于
WriteLine(Single)
- Source:
- IndentedTextWriter.cs
- Source:
- IndentedTextWriter.cs
- Source:
- IndentedTextWriter.cs
将后跟行结束符的 Single 的文本表示形式写入文本流。
public:
override void WriteLine(float value);
public override void WriteLine (float value);
override this.WriteLine : single -> unit
Public Overrides Sub WriteLine (value As Single)
参数
- value
- Single
要写入的 single
。
适用于
WriteLine(Object)
- Source:
- IndentedTextWriter.cs
- Source:
- IndentedTextWriter.cs
- Source:
- IndentedTextWriter.cs
将后跟行结束符的对象的文本表示形式写入文本流。
public:
override void WriteLine(System::Object ^ value);
public override void WriteLine (object? value);
public override void WriteLine (object value);
override this.WriteLine : obj -> unit
Public Overrides Sub WriteLine (value As Object)
参数
- value
- Object
要写入的对象。
适用于
WriteLine(UInt32)
- Source:
- IndentedTextWriter.cs
- Source:
- IndentedTextWriter.cs
- Source:
- IndentedTextWriter.cs
重要
此 API 不符合 CLS。
将后跟行结束符的 UInt32 的文本表示形式写入文本流。
public:
override void WriteLine(System::UInt32 value);
[System.CLSCompliant(false)]
public override void WriteLine (uint value);
[<System.CLSCompliant(false)>]
override this.WriteLine : uint32 -> unit
Public Overrides Sub WriteLine (value As UInteger)
参数
- value
- UInt32
要输出的 UInt32。
- 属性
适用于
WriteLine(Int32)
- Source:
- IndentedTextWriter.cs
- Source:
- IndentedTextWriter.cs
- Source:
- IndentedTextWriter.cs
将后跟行结束符的整数的文本表示形式写入文本流。
public:
override void WriteLine(int value);
public override void WriteLine (int value);
override this.WriteLine : int -> unit
Public Overrides Sub WriteLine (value As Integer)
参数
- value
- Int32
要写入的整数。
适用于
WriteLine(Double)
- Source:
- IndentedTextWriter.cs
- Source:
- IndentedTextWriter.cs
- Source:
- IndentedTextWriter.cs
将后跟行结束符的 Double 的文本表示形式写入文本流。
public:
override void WriteLine(double value);
public override void WriteLine (double value);
override this.WriteLine : double -> unit
Public Overrides Sub WriteLine (value As Double)
参数
- value
- Double
要写入的 double
。
适用于
WriteLine(Char[])
- Source:
- IndentedTextWriter.cs
- Source:
- IndentedTextWriter.cs
- Source:
- IndentedTextWriter.cs
将后跟行结束符的字符数组写入文本流。
public:
override void WriteLine(cli::array <char> ^ buffer);
public override void WriteLine (char[]? buffer);
public override void WriteLine (char[] buffer);
override this.WriteLine : char[] -> unit
Public Overrides Sub WriteLine (buffer As Char())
参数
- buffer
- Char[]
要写入的字符数组。
适用于
WriteLine(Char)
- Source:
- IndentedTextWriter.cs
- Source:
- IndentedTextWriter.cs
- Source:
- IndentedTextWriter.cs
将后跟行结束符的字符写入文本流。
public:
override void WriteLine(char value);
public override void WriteLine (char value);
override this.WriteLine : char -> unit
Public Overrides Sub WriteLine (value As Char)
参数
- value
- Char
要写入的字符。
适用于
WriteLine(Boolean)
- Source:
- IndentedTextWriter.cs
- Source:
- IndentedTextWriter.cs
- Source:
- IndentedTextWriter.cs
将后跟行结束符的 Boolean 的文本表示形式写入文本流。
public:
override void WriteLine(bool value);
public override void WriteLine (bool value);
override this.WriteLine : bool -> unit
Public Overrides Sub WriteLine (value As Boolean)
参数
- value
- Boolean
要写入的 Boolean。
适用于
WriteLine()
- Source:
- IndentedTextWriter.cs
- Source:
- IndentedTextWriter.cs
- Source:
- IndentedTextWriter.cs
写入一个行结束符。
public:
override void WriteLine();
public override void WriteLine ();
override this.WriteLine : unit -> unit
Public Overrides Sub WriteLine ()
适用于
WriteLine(Int64)
- Source:
- IndentedTextWriter.cs
- Source:
- IndentedTextWriter.cs
- Source:
- IndentedTextWriter.cs
将后跟行结束符的 8 字节整数的文本表示形式写入文本流。
public:
override void WriteLine(long value);
public override void WriteLine (long value);
override this.WriteLine : int64 -> unit
Public Overrides Sub WriteLine (value As Long)
参数
- value
- Int64
要写入的 8 字节整数。
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈