IndentedTextWriter.Write 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
Write(String, Object, Object) |
使用與指定一樣的語意寫入格式化字串。 |
Write(Char[], Int32, Int32) |
將字元的子陣列寫入至文字資料流。 |
Write(String) |
將指定的字串寫入文字資料流。 |
Write(String, Object[]) |
使用與指定一樣的語意寫入格式化字串。 |
Write(Single) |
將 Single 的文字表示寫入文字資料流。 |
Write(Object) |
將物件的文字表示寫入文字資料流。 |
Write(String, Object) |
使用與指定一樣的語意寫入格式化字串。 |
Write(Int32) |
將整數的文字表示寫入文字資料流。 |
Write(Double) |
將 Double 的文字表示寫入文字資料流。 |
Write(Char[]) |
將字元陣列寫入文字資料流。 |
Write(Char) |
將字元寫入文字資料流。 |
Write(Boolean) |
將布林值 (Boolean) 的文字表示寫入文字資料流。 |
Write(Int64) |
將 8 位元組整數的文字表示寫入文字資料流。 |
Write(String, Object, Object)
使用與指定一樣的語意寫入格式化字串。
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)
Write(String)
將指定的字串寫入文字資料流。
public override void Write (string s);
public override void Write (string value);
override this.Write : string -> unit
override this.Write : string -> unit
Public Overrides Sub Write (s As String)
Public Overrides Sub Write (value As String)
參數
- svalue
- String
要寫入的字串。
適用於
Write(String, Object[])
Write(Single)
將 Single 的文字表示寫入文字資料流。
public override void Write (float value);
override this.Write : single -> unit
Public Overrides Sub Write (value As Single)
參數
- value
- Single
要寫入的單一 。
適用於
Write(Object)
將物件的文字表示寫入文字資料流。
public override void Write (object value);
override this.Write : obj -> unit
Public Overrides Sub Write (value As Object)
參數
- value
- Object
要寫入的物件。
適用於
Write(String, Object)
Write(Int32)
將整數的文字表示寫入文字資料流。
public override void Write (int value);
override this.Write : int -> unit
Public Overrides Sub Write (value As Integer)
參數
- value
- Int32
要寫入的整數。
適用於
Write(Double)
將 Double 的文字表示寫入文字資料流。
public override void Write (double value);
override this.Write : double -> unit
Public Overrides Sub Write (value As Double)
參數
- value
- Double
要寫入的雙精度浮點數。
適用於
Write(Char[])
將字元陣列寫入文字資料流。
public override void Write (char[] buffer);
override this.Write : char[] -> unit
Public Overrides Sub Write (buffer As Char())
參數
- buffer
- Char[]
要寫入的字元陣列。
適用於
Write(Char)
將字元寫入文字資料流。
public override void Write (char value);
override this.Write : char -> unit
Public Overrides Sub Write (value As Char)
參數
- value
- Char
要寫入的字元。
適用於
Write(Boolean)
將布林值 (Boolean) 的文字表示寫入文字資料流。
public override void Write (bool value);
override this.Write : bool -> unit
Public Overrides Sub Write (value As Boolean)
參數
- value
- Boolean
要寫入的布林值 (Boolean)。
適用於
Write(Int64)
將 8 位元組整數的文字表示寫入文字資料流。
public override void Write (long value);
override this.Write : int64 -> unit
Public Overrides Sub Write (value As Long)
參數
- value
- Int64
要寫入的 8 位元組整數。