This documentation is archived and is not being maintained.

Console.OpenStandardError Method (Int32)

.NET Framework 1.1

Acquires the standard error stream, set to a specified buffer size.

[Visual Basic]
Overloads Public Shared Function OpenStandardError( _
   ByVal bufferSize As Integer _
) As Stream
public static Stream OpenStandardError(
 int bufferSize
public: static Stream* OpenStandardError(
 int bufferSize
public static function OpenStandardError(
   bufferSize : int
) : Stream;


The internal stream buffer size.

Return Value

The standard error stream.


Exception Type Condition
ArgumentOutOfRangeException bufferSize is less than or equal to zero.


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


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Common Language Infrastructure (CLI) Standard

See Also

Console Class | Console Members | System Namespace | Console.OpenStandardError Overload List | Error | SetError