AnonymousPipeServerStream Constructor (PipeDirection, HandleInheritability, Int32)
Initializes a new instance of the AnonymousPipeServerStream class with the specified pipe direction, inheritability mode, and buffer size.
Assembly: System.Core (in System.Core.dll)
public: AnonymousPipeServerStream( PipeDirection direction, HandleInheritability inheritability, int bufferSize )
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.
- inheritability
-
Type:
System.IO::HandleInheritability
One of the enumeration values that determines whether the underlying handle can be inherited by child processes. Must be set to either None or Inheritable.
- bufferSize
-
Type:
System::Int32
The size of the buffer. This value must be greater than or equal to 0.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | |
| 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 without pipe security.
for full trust for the immediate caller. This member cannot be used by partially trusted code.
Available since 3.5