NamedPipeClientStream.Connect Method (Int32)
Connects to a waiting server within the specified time-out period.
Assembly: System.Core (in System.Core.dll)
Could not connect to the server within the specified timeout period.
timeout is less than 0 and not set to Infinite.
The client is already connected.
The server is connected to another client and the time-out period has expired.
This method waits for a pipe instance to become available. Connect might return before WaitForConnection is called from the NamedPipeServerStream, but WaitForConnection will not return until Connect has returned. You set the timeout parameter to Infinite to specify an infinite time-out value.
Any data written to the pipe after a NamedPipeClientStream object has connected, but before the server has called WaitForConnection, will be available to the server following the call to WaitForConnection.