Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Console::OpenStandardError Method (Int32)

 

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

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

public:
[HostProtectionAttribute(SecurityAction::LinkDemand, UI = true)]
static Stream^ OpenStandardError(
	int bufferSize
)

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:
© 2017 Microsoft