Renci.SshNet.Shell.Stop C# (CSharp) 메소드

Stop() 공개 메소드

Stops this shell.
Shell is not started.
public Stop ( ) : void
리턴 void
        public void Stop()
        {
            if (!IsStarted)
            {
                throw new SshException("Shell is not started.");
            }

            if (_channel != null)
            {
                _channel.Dispose();
            }
        }

Usage Example

예제 #1
0
 /// <summary>
 /// Stops this shell.
 /// </summary>
 public void Stop()
 {
     _sshShell.Stop();
 }