IndentedTextWriter.Write Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Write(String, Object, Object) |
Writes out a formatted string, using the same semantics as specified. |
Write(Char[], Int32, Int32) |
Writes a subarray of characters to the text stream. |
Write(String) |
Writes the specified string to the text stream. |
Write(String, Object[]) |
Writes out a formatted string, using the same semantics as specified. |
Write(Single) |
Writes the text representation of a Single to the text stream. |
Write(Object) |
Writes the text representation of an object to the text stream. |
Write(String, Object) |
Writes out a formatted string, using the same semantics as specified. |
Write(Int32) |
Writes the text representation of an integer to the text stream. |
Write(Double) |
Writes the text representation of a Double to the text stream. |
Write(Char[]) |
Writes a character array to the text stream. |
Write(Char) |
Writes a character to the text stream. |
Write(Boolean) |
Writes the text representation of a Boolean value to the text stream. |
Write(Int64) |
Writes the text representation of an 8-byte integer to the text stream. |
Write(String, Object, Object)
Writes out a formatted string, using the same semantics as specified.
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)
Parameters
- format
- String
The formatting string to use.
- arg0
- Object
The first object to write into the formatted string.
- arg1
- Object
The second object to write into the formatted string.
Applies to
Write(Char[], Int32, Int32)
Writes a subarray of characters to the text stream.
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)
Parameters
- buffer
- Char[]
The character array to write data from.
- index
- Int32
Starting index in the buffer.
- count
- Int32
The number of characters to write.
Applies to
Write(String)
Writes the specified string to the text stream.
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)
Parameters
- svalue
- String
The string to write.
Applies to
Write(String, Object[])
Writes out a formatted string, using the same semantics as specified.
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())
Parameters
- format
- String
The formatting string to use.
- arg
- Object[]
The argument array to output.
Applies to
Write(Single)
Writes the text representation of a Single to the text stream.
public override void Write (float value);
override this.Write : single -> unit
Public Overrides Sub Write (value As Single)
Parameters
- value
- Single
The single to write.
Applies to
Write(Object)
Writes the text representation of an object to the text stream.
public override void Write (object value);
override this.Write : obj -> unit
Public Overrides Sub Write (value As Object)
Parameters
- value
- Object
The object to write.
Applies to
Write(String, Object)
Writes out a formatted string, using the same semantics as specified.
public override void Write (string format, object arg0);
override this.Write : string * obj -> unit
Public Overrides Sub Write (format As String, arg0 As Object)
Parameters
- format
- String
The formatting string.
- arg0
- Object
The object to write into the formatted string.
Applies to
Write(Int32)
Writes the text representation of an integer to the text stream.
public override void Write (int value);
override this.Write : int -> unit
Public Overrides Sub Write (value As Integer)
Parameters
- value
- Int32
The integer to write.
Applies to
Write(Double)
Writes the text representation of a Double to the text stream.
public override void Write (double value);
override this.Write : double -> unit
Public Overrides Sub Write (value As Double)
Parameters
- value
- Double
The double to write.
Applies to
Write(Char[])
Writes a character array to the text stream.
public override void Write (char[] buffer);
override this.Write : char[] -> unit
Public Overrides Sub Write (buffer As Char())
Parameters
- buffer
- Char[]
The character array to write.
Applies to
Write(Char)
Writes a character to the text stream.
public override void Write (char value);
override this.Write : char -> unit
Public Overrides Sub Write (value As Char)
Parameters
- value
- Char
The character to write.
Applies to
Write(Boolean)
Writes the text representation of a Boolean value to the text stream.
public override void Write (bool value);
override this.Write : bool -> unit
Public Overrides Sub Write (value As Boolean)
Parameters
- value
- Boolean
The Boolean value to write.
Applies to
Write(Int64)
Writes the text representation of an 8-byte integer to the text stream.
public override void Write (long value);
override this.Write : int64 -> unit
Public Overrides Sub Write (value As Long)
Parameters
- value
- Int64
The 8-byte integer to write.
Applies to
Entity Framework