Mono Class Library: System.Console Overview | Members

System.Console.SetIn Method

Sets the Console.In property to the specified System.IO.TextReader . [Edit]

public static void SetIn (System.IO.TextReader newIn)

Parameters

newIn
A System.IO.TextReader that becomes the new standard input stream. [Edit]

Permissions

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

Exceptions

TypeReason
ArgumentNullExceptionnewIn is null. [Edit]

Remarks

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.

[Edit]

Requirements

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