Open sandboxFocus

Method Write

Write(string)

Appends a preformatted string to the next message. The message is sent and flushed when the WriteLine(string) method is invoked.

Declaration
public void Write(string message)
Parameters
Type Name Description
string message

The message.

Write(string, object[])

Appends a string to the next message and formats it using a formatting string and an array of arguments. The message is sent and flushed when the WriteLine(string) method is invoked.

Declaration
public void Write(string message, object[] args)
Parameters
Type Name Description
string message

The message formatting string.

object[] args

The arguments of the formatting string.

Write<T1>(string, T1)

Appends a string to the next message and formats it using a formatting string and 1 argument. The message is sent and flushed when the WriteLine(string) method is invoked.

Declaration
public void Write<T1>(string format, T1 arg1)
Parameters
Type Name Description
string format

The message formatting string.

T1 arg1

The value of argument 1.

Type Parameters
Name Description
T1

The type of argument 1.

Write<T1, T2>(string, T1, T2)

Appends a string to the next message and formats it using a formatting string and 2 arguments. The message is sent and flushed when the WriteLine(string) method is invoked.

Declaration
public void Write<T1, T2>(string format, T1 arg1, T2 arg2)
Parameters
Type Name Description
string format

The message formatting string.

T1 arg1

The value of argument 1.

T2 arg2

The value of argument 2.

Type Parameters
Name Description
T1

The type of argument 1.

T2

The type of argument 2.

Write<T1, T2, T3>(string, T1, T2, T3)

Appends a string to the next message and formats it using a formatting string and 3 arguments. The message is sent and flushed when the WriteLine(string) method is invoked.

Declaration
public void Write<T1, T2, T3>(string format, T1 arg1, T2 arg2, T3 arg3)
Parameters
Type Name Description
string format

The message formatting string.

T1 arg1

The value of argument 1.

T2 arg2

The value of argument 2.

T3 arg3

The value of argument 3.

Type Parameters
Name Description
T1

The type of argument 1.

T2

The type of argument 2.

T3

The type of argument 3.

Write<T1, T2, T3, T4>(string, T1, T2, T3, T4)

Appends a string to the next message and formats it using a formatting string and 4 arguments. The message is sent and flushed when the WriteLine(string) method is invoked.

Declaration
public void Write<T1, T2, T3, T4>(string format, T1 arg1, T2 arg2, T3 arg3, T4 arg4)
Parameters
Type Name Description
string format

The message formatting string.

T1 arg1

The value of argument 1.

T2 arg2

The value of argument 2.

T3 arg3

The value of argument 3.

T4 arg4

The value of argument 4.

Type Parameters
Name Description
T1

The type of argument 1.

T2

The type of argument 2.

T3

The type of argument 3.

T4

The type of argument 4.

Write<T1, T2, T3, T4, T5>(string, T1, T2, T3, T4, T5)

Appends a string to the next message and formats it using a formatting string and 5 arguments. The message is sent and flushed when the WriteLine(string) method is invoked.

Declaration
public void Write<T1, T2, T3, T4, T5>(string format, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5)
Parameters
Type Name Description
string format

The message formatting string.

T1 arg1

The value of argument 1.

T2 arg2

The value of argument 2.

T3 arg3

The value of argument 3.

T4 arg4

The value of argument 4.

T5 arg5

The value of argument 5.

Type Parameters
Name Description
T1

The type of argument 1.

T2

The type of argument 2.

T3

The type of argument 3.

T4

The type of argument 4.

T5

The type of argument 5.

Write<T1, T2, T3, T4, T5, T6>(string, T1, T2, T3, T4, T5, T6)

Appends a string to the next message and formats it using a formatting string and 6 arguments. The message is sent and flushed when the WriteLine(string) method is invoked.

Declaration
public void Write<T1, T2, T3, T4, T5, T6>(string format, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6)
Parameters
Type Name Description
string format

The message formatting string.

T1 arg1

The value of argument 1.

T2 arg2

The value of argument 2.

T3 arg3

The value of argument 3.

T4 arg4

The value of argument 4.

T5 arg5

The value of argument 5.

T6 arg6

The value of argument 6.

Type Parameters
Name Description
T1

The type of argument 1.

T2

The type of argument 2.

T3

The type of argument 3.

T4

The type of argument 4.

T5

The type of argument 5.

T6

The type of argument 6.

Write<T1, T2, T3, T4, T5, T6, T7>(string, T1, T2, T3, T4, T5, T6, T7)

Appends a string to the next message and formats it using a formatting string and 7 arguments. The message is sent and flushed when the WriteLine(string) method is invoked.

Declaration
public void Write<T1, T2, T3, T4, T5, T6, T7>(string format, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7)
Parameters
Type Name Description
string format

The message formatting string.

T1 arg1

The value of argument 1.

T2 arg2

The value of argument 2.

T3 arg3

The value of argument 3.

T4 arg4

The value of argument 4.

T5 arg5

The value of argument 5.

T6 arg6

The value of argument 6.

T7 arg7

The value of argument 7.

Type Parameters
Name Description
T1

The type of argument 1.

T2

The type of argument 2.

T3

The type of argument 3.

T4

The type of argument 4.

T5

The type of argument 5.

T6

The type of argument 6.

T7

The type of argument 7.