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