Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

Ssh.RunCommandAsync Method

Namespace: Rebex.Net
Assembly: Rebex.SshShell.dll (version 7.0.9147)

RunCommandAsync(String, Object)

Begins asynchronous RunCommand operation. Runs a remote command and returns its response. Returns null reference (Nothing in Visual Basic) if the end of response has been reached without any preceding data.

Declaration
public Task<string> RunCommandAsync(string command, object state = null)
Parameters
Type Name Description
String command

Command to run.

Object state

An optional user-provided object that identifies this particular asynchronous operation.

Returns
Type Description
Task<String>

Command response if available; or null reference (Nothing in Visual Basic).

In This Article
  • RunCommandAsync(String, Object)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies