Sets the Console.Out property to the specified System.IO.TextWriter .
- newOut
- A System.IO.TextWriter that becomes the new standard output stream.
Type Reason ArgumentNullException newOut is null.
This method replaces the Console.Out property with a synchronized System.IO.TextWriter returned by System.IO.TextWriter.Synchronized(System.IO.TextWriter)( newOut ).
| Type | Reason |
|---|---|
| System.Security.Permissions.SecurityPermissionFlag | Requires permission to execute unmanaged code. See System.Security.Permissions.SecurityPermissionFlag.UnmanagedCode . |