Sets the Console.In property to the specified System.IO.TextReader .
- newIn
- A System.IO.TextReader that becomes the new standard input stream.
Type Reason System.Security.Permissions.SecurityPermissionFlag Requires permission to execute unmanaged code. See System.Security.Permissions.SecurityPermissionFlag.UnmanagedCode .
Type Reason ArgumentNullException newIn is null.
This method replaces the Console.In property with a synchronized System.IO.TextReader returned by System.IO.TextReader.Synchronized(System.IO.TextReader)( newIn ).
Note: By default, the Console.In property is set to the system's standard input stream.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0