IndentedTextWriter.WriteLine 方法    
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将指定的字符串(后跟行终止符)写入文本流。
重载
| WriteLine(String, Object, Object) | 使用指定的相同语义写出格式化字符串,后跟行终止符。 | 
| WriteLine(Char[], Int32, Int32) | 将字符的子数组(后跟行终止符)写入文本流。 | 
| WriteLine(String, ReadOnlySpan<Object>) | 使用指定的相同语义写出格式化字符串,后跟行终止符。 | 
| WriteLine(String, Object[]) | 使用指定的相同语义写出格式化字符串,后跟行终止符。 | 
| WriteLine(String, Object) | 使用指定的相同语义写出格式化字符串,后跟行终止符。 | 
| WriteLine(String) | 将指定的字符串(后跟行终止符)写入文本流。 | 
| WriteLine(Single) | 将单个的文本表示形式(后跟行终止符)写入文本流。 | 
| WriteLine(UInt32) | 将 UInt32 的文本表示形式(后跟行终止符)写入文本流。 | 
| WriteLine(Int64) | 将 8 字节整数的文本表示形式(后跟行终止符)写入文本流。 | 
| WriteLine(Int32) | 将整数的文本表示形式(后跟行终止符)写入文本流。 | 
| WriteLine(Double) | 将 Double 的文本表示形式(后跟行终止符)写入文本流。 | 
| WriteLine(Char[]) | 将字符数组(后跟行终止符)写入文本流。 | 
| WriteLine(Char) | 将字符(后跟行终止符)写入文本流。 | 
| WriteLine(Boolean) | 将布尔值(后跟行终止符)的文本表示形式写入文本流。 | 
| WriteLine() | 写入行终止符。 | 
| WriteLine(Object) | 将对象的文本表示形式(后跟行终止符)写入文本流。 | 
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 -> unitPublic 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 -> unitPublic Overrides Sub WriteLine (buffer As Char(), index As Integer, count As Integer)参数
- buffer
- Char[]
要从中写入数据的字符数组。
- index
- Int32
在缓冲区中启动索引。
- count
- Int32
要写入的字符数。
适用于
WriteLine(String, ReadOnlySpan<Object>)
使用指定的相同语义写出格式化字符串,后跟行终止符。
public:
 override void WriteLine(System::String ^ format, ReadOnlySpan<System::Object ^> arg);public override void WriteLine (string format, scoped ReadOnlySpan<object?> arg);override this.WriteLine : string * ReadOnlySpan<obj> -> unitPublic Overrides Sub WriteLine (format As String, arg As ReadOnlySpan(Of Object))参数
- format
- String
要使用的格式字符串。
- arg
- ReadOnlySpan<Object>
要输出的参数范围。
适用于
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[] -> unitPublic 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 -> unitPublic 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 -> unitPublic Overrides Sub WriteLine (s As String)参数
- s
- String
要写入的字符串。
适用于
WriteLine(Single)
- Source:
- IndentedTextWriter.cs
- Source:
- IndentedTextWriter.cs
- Source:
- IndentedTextWriter.cs
将单个的文本表示形式(后跟行终止符)写入文本流。
public:
 override void WriteLine(float value);public override void WriteLine (float value);override this.WriteLine : single -> unitPublic Overrides Sub WriteLine (value As Single)参数
- value
- Single
要写入的 single。
适用于
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 -> unitPublic Overrides Sub WriteLine (value As UInteger)参数
- value
- UInt32
要输出的 UInt32。
- 属性
适用于
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 -> unitPublic Overrides Sub WriteLine (value As Long)参数
- value
- Int64
要写入的 8 字节整数。
适用于
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 -> unitPublic 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 -> unitPublic 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[] -> unitPublic 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 -> unitPublic Overrides Sub WriteLine (value As Char)参数
- value
- Char
要写入的字符。
适用于
WriteLine(Boolean)
- Source:
- IndentedTextWriter.cs
- Source:
- IndentedTextWriter.cs
- Source:
- IndentedTextWriter.cs
将布尔值(后跟行终止符)的文本表示形式写入文本流。
public:
 override void WriteLine(bool value);public override void WriteLine (bool value);override this.WriteLine : bool -> unitPublic Overrides Sub WriteLine (value As Boolean)参数
- value
- Boolean
要写入的布尔值。
适用于
WriteLine()
- Source:
- IndentedTextWriter.cs
- Source:
- IndentedTextWriter.cs
- Source:
- IndentedTextWriter.cs
写入行终止符。
public:
 override void WriteLine();public override void WriteLine ();override this.WriteLine : unit -> unitPublic Overrides Sub WriteLine ()适用于
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 -> unitPublic Overrides Sub WriteLine (value As Object)参数
- value
- Object
要写入的对象。