Editare

Partajați prin


IndentedTextWriter.Write Method

Definition

Writes the specified string to the text stream.

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, ReadOnlySpan<Object>)

Writes out a formatted string, using the same semantics as specified.

Write(String, Object[])

Writes out a formatted string, using the same semantics as specified.

Write(String, Object)

Writes out a formatted string, using the same semantics as specified.

Write(String)

Writes the specified string to the text stream.

Write(Single)

Writes the text representation of a Single 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(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(Object)

Writes the text representation of an object to the text stream.

Write(String, Object, Object)

Source:
IndentedTextWriter.cs
Source:
IndentedTextWriter.cs
Source:
IndentedTextWriter.cs

Writes out a formatted string, using the same semantics as specified.

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)

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)

Source:
IndentedTextWriter.cs
Source:
IndentedTextWriter.cs
Source:
IndentedTextWriter.cs

Writes a subarray of characters to the text stream.

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)

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, ReadOnlySpan<Object>)

Writes out a formatted string, using the same semantics as specified.

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> -> unit
Public Overrides Sub Write (format As String, arg As ReadOnlySpan(Of Object))

Parameters

format
String

The formatting string to use.

arg
ReadOnlySpan<Object>

The argument span to output.

Applies to

Write(String, Object[])

Source:
IndentedTextWriter.cs
Source:
IndentedTextWriter.cs
Source:
IndentedTextWriter.cs

Writes out a formatted string, using the same semantics as specified.

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())

Parameters

format
String

The formatting string to use.

arg
Object[]

The argument array to output.

Applies to

Write(String, Object)

Source:
IndentedTextWriter.cs
Source:
IndentedTextWriter.cs
Source:
IndentedTextWriter.cs

Writes out a formatted string, using the same semantics as specified.

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)

Parameters

format
String

The formatting string.

arg0
Object

The object to write into the formatted string.

Applies to

Write(String)

Source:
IndentedTextWriter.cs
Source:
IndentedTextWriter.cs
Source:
IndentedTextWriter.cs

Writes the specified string to the text stream.

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)

Parameters

s
String

The string to write.

Applies to

Write(Single)

Source:
IndentedTextWriter.cs
Source:
IndentedTextWriter.cs
Source:
IndentedTextWriter.cs

Writes the text representation of a Single to the text stream.

public:
 override void Write(float value);
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(Boolean)

Source:
IndentedTextWriter.cs
Source:
IndentedTextWriter.cs
Source:
IndentedTextWriter.cs

Writes the text representation of a Boolean value to the text stream.

public:
 override void Write(bool value);
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)

Source:
IndentedTextWriter.cs
Source:
IndentedTextWriter.cs
Source:
IndentedTextWriter.cs

Writes the text representation of an 8-byte integer to the text stream.

public:
 override void Write(long value);
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

Write(Int32)

Source:
IndentedTextWriter.cs
Source:
IndentedTextWriter.cs
Source:
IndentedTextWriter.cs

Writes the text representation of an integer to the text stream.

public:
 override void Write(int value);
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)

Source:
IndentedTextWriter.cs
Source:
IndentedTextWriter.cs
Source:
IndentedTextWriter.cs

Writes the text representation of a Double to the text stream.

public:
 override void Write(double value);
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[])

Source:
IndentedTextWriter.cs
Source:
IndentedTextWriter.cs
Source:
IndentedTextWriter.cs

Writes a character array to the text stream.

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())

Parameters

buffer
Char[]

The character array to write.

Applies to

Write(Char)

Source:
IndentedTextWriter.cs
Source:
IndentedTextWriter.cs
Source:
IndentedTextWriter.cs

Writes a character to the text stream.

public:
 override void Write(char value);
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(Object)

Source:
IndentedTextWriter.cs
Source:
IndentedTextWriter.cs
Source:
IndentedTextWriter.cs

Writes the text representation of an object to the text stream.

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)

Parameters

value
Object

The object to write.

Applies to