AnonymousPipeServerStream Constructor (PipeDirection)

 

Initializes a new instance of the AnonymousPipeServerStream class with the specified pipe direction.

Namespace:   System.IO.Pipes
Assembly:  System.Core (in System.Core.dll)

public:
AnonymousPipeServerStream(
	PipeDirection direction
)

Parameters

direction
Type: System.IO.Pipes::PipeDirection

One of the enumeration values that determines the direction of the pipe.

Anonymous pipes can only be in one direction, so direction cannot be set to InOut.

Exception Condition
NotSupportedException

direction is set to InOut.

A PipeDirection value of InOut is not supported because anonymous pipes are defined to be one-way.

This constructor creates an AnonymousPipeServerStream object that has the default buffer size, no pipe security, and a HandleInheritability value of None.

Demand

for full trust for the immediate caller. This member cannot be used by partially trusted code.

.NET Framework
Available since 3.5
Return to top
Show: