NamedPipeServerStream Constructor (String^)
Initializes a new instance of the NamedPipeServerStream class with the specified pipe name.
Assembly: System.Core (in System.Core.dll)
Parameters
- pipeName
-
Type:
System::String^
The name of the pipe.
| Exception | Condition |
|---|---|
| ArgumentNullException | pipeName is null. |
| ArgumentException | pipeName is a zero-length string. |
| ArgumentOutOfRangeException | pipeName is set to "anonymous". |
| NotSupportedException | pipeName contains a colon (":"). |
| PlatformNotSupportedException | The operating system is Windows Millennium Edition, Windows 98, or Windows 95, which are not supported. |
| IOException | The maximum number of server instances has been exceeded. |
This constructor creates a NamedPipeServerStream object that has the following characteristics:
A default pipe direction of InOut.
The maximum number of server instances that share the same name set to 1.
A PipeTransmissionMode value of Byte.
A PipeOptions value of None.
Default input and output buffer sizes.
No pipe security.
A HandleInheritability value of None.
No specified additional PipeAccessRights.
For full trust for the immediate caller. This member cannot be used by partially trusted code.
Available since 3.5