IndentedTextWriter.Write 方法

定義

將指定的字串寫入文字資料流。

多載

Write(String, Object, Object)

使用與指定一樣的語意寫入格式化字串。

Write(Char[], Int32, Int32)

將字元的子陣列寫入至文字資料流。

Write(String, Object[])

使用與指定一樣的語意寫入格式化字串。

Write(String, Object)

使用與指定一樣的語意寫入格式化字串。

Write(String)

將指定的字串寫入文字資料流。

Write(Single)

將 Single 的文字表示寫入文字資料流。

Write(Boolean)

將布林值 (Boolean) 的文字表示寫入文字資料流。

Write(Int64)

將 8 位元組整數的文字表示寫入文字資料流。

Write(Int32)

將整數的文字表示寫入文字資料流。

Write(Double)

將 Double 的文字表示寫入文字資料流。

Write(Char[])

將字元陣列寫入文字資料流。

Write(Char)

將字元寫入文字資料流。

Write(Object)

將物件的文字表示寫入文字資料流。

Write(String, Object, Object)

來源:
IndentedTextWriter.cs
來源:
IndentedTextWriter.cs
來源:
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 -> unit
Public Overrides Sub Write (format As String, arg0 As Object, arg1 As Object)

參數

format
String

要使用的格式化字串。

arg0
Object

要寫入格式化字串的第一個物件。

arg1
Object

要寫入格式化字串的第二個物件。

適用於

Write(Char[], Int32, Int32)

來源:
IndentedTextWriter.cs
來源:
IndentedTextWriter.cs
來源:
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 -> unit
Public Overrides Sub Write (buffer As Char(), index As Integer, count As Integer)

參數

buffer
Char[]

資料寫入來源的字元陣列。

index
Int32

緩衝區中的起始索引。

count
Int32

要寫入的字元數。

適用於

Write(String, Object[])

來源:
IndentedTextWriter.cs
來源:
IndentedTextWriter.cs
來源:
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[] -> unit
Public Overrides Sub Write (format As String, ParamArray arg As Object())

參數

format
String

要使用的格式化字串。

arg
Object[]

要輸出的引數陣列。

適用於

Write(String, Object)

來源:
IndentedTextWriter.cs
來源:
IndentedTextWriter.cs
來源:
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 -> unit
Public Overrides Sub Write (format As String, arg0 As Object)

參數

format
String

格式化字串。

arg0
Object

要寫入至格式化字串的物件。

適用於

Write(String)

來源:
IndentedTextWriter.cs
來源:
IndentedTextWriter.cs
來源:
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 -> unit
Public Overrides Sub Write (s As String)

參數

s
String

要寫入的字串。

適用於

Write(Single)

來源:
IndentedTextWriter.cs
來源:
IndentedTextWriter.cs
來源:
IndentedTextWriter.cs

將 Single 的文字表示寫入文字資料流。

public:
 override void Write(float value);
public override void Write (float value);
override this.Write : single -> unit
Public Overrides Sub Write (value As Single)

參數

value
Single

要寫入的 single

適用於

Write(Boolean)

來源:
IndentedTextWriter.cs
來源:
IndentedTextWriter.cs
來源:
IndentedTextWriter.cs

將布林值 (Boolean) 的文字表示寫入文字資料流。

public:
 override void Write(bool value);
public override void Write (bool value);
override this.Write : bool -> unit
Public Overrides Sub Write (value As Boolean)

參數

value
Boolean

要寫入的布林值 (Boolean)。

適用於

Write(Int64)

來源:
IndentedTextWriter.cs
來源:
IndentedTextWriter.cs
來源:
IndentedTextWriter.cs

將 8 位元組整數的文字表示寫入文字資料流。

public:
 override void Write(long value);
public override void Write (long value);
override this.Write : int64 -> unit
Public Overrides Sub Write (value As Long)

參數

value
Int64

要寫入的 8 位元組整數。

適用於

Write(Int32)

來源:
IndentedTextWriter.cs
來源:
IndentedTextWriter.cs
來源:
IndentedTextWriter.cs

將整數的文字表示寫入文字資料流。

public:
 override void Write(int value);
public override void Write (int value);
override this.Write : int -> unit
Public Overrides Sub Write (value As Integer)

參數

value
Int32

要寫入的整數。

適用於

Write(Double)

來源:
IndentedTextWriter.cs
來源:
IndentedTextWriter.cs
來源:
IndentedTextWriter.cs

將 Double 的文字表示寫入文字資料流。

public:
 override void Write(double value);
public override void Write (double value);
override this.Write : double -> unit
Public Overrides Sub Write (value As Double)

參數

value
Double

要寫入的 double

適用於

Write(Char[])

來源:
IndentedTextWriter.cs
來源:
IndentedTextWriter.cs
來源:
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[] -> unit
Public Overrides Sub Write (buffer As Char())

參數

buffer
Char[]

要寫入的字元陣列。

適用於

Write(Char)

來源:
IndentedTextWriter.cs
來源:
IndentedTextWriter.cs
來源:
IndentedTextWriter.cs

將字元寫入文字資料流。

public:
 override void Write(char value);
public override void Write (char value);
override this.Write : char -> unit
Public Overrides Sub Write (value As Char)

參數

value
Char

要寫入的字元。

適用於

Write(Object)

來源:
IndentedTextWriter.cs
來源:
IndentedTextWriter.cs
來源:
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 -> unit
Public Overrides Sub Write (value As Object)

參數

value
Object

要寫入的物件。

適用於