Creates the command to be executed with specified encoding.
Namespace: Renci.SshNetAssembly: Renci.SshNet (in Renci.SshNet.dll) Version: 0.1.0.0 (1.0.0.0)
Syntax
public SshCommand CreateCommand( string commandText, Encoding encoding )
Parameters
- commandText
- Type:
System String
The command text.
- encoding
- Type:
System.Text Encoding
The encoding to use for results.
Return Value
SshCommand object which uses specified encoding.Exceptions
| Exception | Condition |
|---|---|
| Renci.SshNet.Common SshConnectionException | Client is not connected. |
| commandText or encoding is null. |
See Also