Sets the Console.Error property to the specified System.IO.TextWriter .
- newError
- A System.IO.TextWriter that becomes the new standard error output stream.
Type Reason System.Security.SecurityException The caller does not have the required permission. ArgumentNullException newError is null.
This method replaces the Console.Error property with a synchronized System.IO.TextWriter returned by System.IO.TextWriter.Synchronized(System.IO.TextWriter)( newError ).
| Type | Reason |
|---|---|
| System.Security.Permissions.SecurityPermissionFlag | Requires System.Security.Permissions.SecurityPermissionFlag.UnmanagedCode permission. |