Share via


Write Method (String)

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Writes a string to the text string or stream.

Namespace:  System.IO
Assembly:  System.IO (in System.IO.dll)

Syntax

'Declaration
Public Overridable Sub Write ( _
    value As String _
)
public virtual void Write(
    string value
)
public:
virtual void Write(
    String^ value
)
abstract Write : 
        value:string -> unit 
override Write : 
        value:string -> unit 
public function Write(
    value : String
)

Parameters

Remarks

This overload is equivalent to the Write(array<Char>[]()[][]) overload.

This method does not search the specified string for individual newline characters (hexadecimal 0x000a) and replace them with TextWriter..::..NewLine.

If value is null Nothing nullptr unit a null reference (Nothing in Visual Basic) , nothing is written to the text stream.

.NET Framework Security

See Also

Reference

TextWriter Class

Write Overload

System.IO Namespace