Xceed .NET Libraries Documentation
ExecuteCommandAsync(String,KeyValuePair<String,String>[]) Method


Xceed.SSH.Client Assembly > Xceed.SSH.Client Namespace > ExecuteCommandSession Class > ExecuteCommandAsync Method : ExecuteCommandAsync(String,KeyValuePair<String,String>[]) Method
Syntax
'Declaration
 
Public Overloads Function ExecuteCommandAsync( _
   ByVal command As String, _
   ByVal ParamArray environmentVariables() As KeyValuePair(Of String,String) _
) As Task(Of Nullable(Of Integer))
'Usage
 
Dim instance As ExecuteCommandSession
Dim command As String
Dim environmentVariables() As KeyValuePair(Of String,String)
Dim value As Task(Of Nullable(Of Integer))
 
value = instance.ExecuteCommandAsync(command, environmentVariables)
public Task<Nullable<int>> ExecuteCommandAsync( 
   string command,
   params KeyValuePair<string,string>[] environmentVariables
)

Parameters

command
environmentVariables
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ExecuteCommandSession Class
ExecuteCommandSession Members
Overload List