Export (0) Print
Expand All

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
[C#]
public static Stream OpenStandardError(
 int bufferSize
);
[C++]
public: static Stream* OpenStandardError(
 int bufferSize
);
[JScript]
public static function OpenStandardError(
   bufferSize : int
) : Stream;

Parameters

bufferSize
The internal stream buffer size.

Return Value

The standard error stream.

Exceptions

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

Remarks

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

Requirements

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

Show:
© 2014 Microsoft