OpenStandardInput Method (Int32)
Collapse the table of content
Expand the table of content

Console.OpenStandardInput Method (Int32)

 

Acquires the standard input stream, which is set to a specified buffer size.

Namespace:   System
Assembly:  mscorlib (in mscorlib.dll)

[<HostProtectionAttribute(SecurityAction.LinkDemand, UI = true)>]
static member OpenStandardInput : 
        bufferSize:int -> Stream

Parameters

bufferSize
Type: System.Int32

The internal stream buffer size.

Return Value

Type: System.IO.Stream

The standard input stream.

Exception Condition
ArgumentOutOfRangeException

bufferSize is less than or equal to zero.

This method can be used to reacquire the standard output stream after it has been changed by the SetIn method.

The following example illustrates the use of the OpenStandardInput property.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show:
© 2016 Microsoft