Disconnect Method
Disconnect from the RemoteHost .
Syntax
[VB.NET] Public Sub Disconnect()
[C#] public void Disconnect();
Remarks
Calling this method is normally unnecessary, unless you wish to interrupt the remote program, or the remote program is waiting for standard input to end before terminating.
NOTE: This method has a corresponding asynchronous version (DisconnectAsync) for use in the WinRT environment.