StreamWriter: WriteValue

WriteValue

Writes the encoded string representation of the value to the stream.



 Public Sub WriteValue(
	  ByRef Value As Variant,
	  ParamArray Args ( ) As Variant )

Parameters

Value
[ByRef] Variant. The value to be written to the stream.
Args
[ByRef] Variant. The arguments to be used in formatting the Value.

Remarks

The Args are used when argument indexes are supplied in the value to be written. Indexes are indicated by enclosing the specific index in curly braces {}. The indexes start at 0.

Exceptions

ExceptionCondition
ObjectDisposedExceptionThe writer is closed.
FormatException The format specification in format is invalid.
-or-
The number indicating an argument to be formatted is less than zero, or larger than or equal to the number of provided objects to be formatted.

See Also

Project CorLib Overview

Class StreamWriter Overview