Mono Class Library: System.Console Overview | Members

System.Console.SetOut Method

Sets the Console.Out property to the specified System.IO.TextWriter . [Edit]

public static void SetOut (System.IO.TextWriter newOut)

Parameters

newOut
A System.IO.TextWriter that becomes the new standard output stream. [Edit]

Permissions

TypeReason
System.Security.Permissions.SecurityPermissionFlag [Edit] Requires permission to execute unmanaged code. See System.Security.Permissions.SecurityPermissionFlag.UnmanagedCode .

Exceptions

TypeReason
ArgumentNullExceptionnewOut is null. [Edit]

Remarks

This method replaces the Console.Out property with a synchronized System.IO.TextWriter returned by System.IO.TextWriter.Synchronized(System.IO.TextWriter)( newOut ).

Note: By default, the Console.Out property is set to the system's standard output stream.

[Edit]

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0