Pipe Server Stream. Disconnect Method
Disconnects the current connection.
public: void Disconnect();
[System.Security.SecurityCritical] public void Disconnect ();
member this.Disconnect : unit -> unit
Public Sub Disconnect ()
No pipe connections have been made yet.
The connected pipe has already disconnected.
The pipe handle has not been set.
The pipe is closed.
Calling the Disconnect method will block until all the sent characters have been read unless the transmission mode of the pipe is set to Message and the buffer size is set in the constructor that created the NamedPipeServerStream object. In this case, not all of the messages will be received. Calling WaitForPipeDrain causes the server to block until all the data has been read from the pipe.