Writes a length-prefixed string to this stream in the BinaryWriter's current Encoding and advances the current position of the stream in accordance with the Encoding used and perhaps the particular characters being written to the stream.
[Visual Basic] Overridable Public Sub WriteString( _ ByVal value As String _ ) [C#] public virtual void WriteString( string value ); [C++] public: virtual void WriteString( String* value ); [JScript] public function WriteString( value : String );
Exception Type | Condition |
---|---|
IOException | An I/O error occurs. |
ArgumentNullException | value is a null reference (in Visual Basic Nothing). |
BinaryWriter Class | BinaryWriter Members | System.IO Namespace