Console::In Property
Gets the standard input stream.
Assembly: mscorlib (in mscorlib.dll)
public: property TextReader^ In { [HostProtectionAttribute(SecurityAction::LinkDemand, UI = true)] static TextReader^ get(); }
This property is set to the standard input stream by default. This property can be set to another stream with the SetIn method.
Read operations on the standard input stream execute synchronously. That is, they block until the specified read operation has completed. This is true even if an asynchronous method, such as ReadLineAsync, is called on the TextReader object returned by the In property.
The following sample illustrates the use of the In property.
Available since 1.1
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0