Console.OpenStandardError Method (Int32)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

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

<HostProtectionAttribute(SecurityAction.LinkDemand, UI := True)>
Public Shared Function OpenStandardError (
	bufferSize As Integer
) As Stream

Parameters

bufferSize
Type: System.Int32

The internal stream buffer size.

Return Value

Type: System.IO.Stream

The standard error stream.

Exception 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.

.NET Framework
Available since 1.1
Return to top
Show: