This is an old revision of the document!

CommandExecutionResult Class

Represents results of Session.ExecuteCommand.

Advertisement

Syntax

Namespace: WinSCP

Prior to 5.6.2 beta:

C#
public sealed class CommandExecutionResult
VB.NET
Public NotInheritable Class CommandExecutionResult

Since 5.6.2 beta:

C#
VB.NET
Public NotInheritable Class CommandExecutionResult
    Inherits OperationResultBase

Properties

Name Description
string ErrorOutput Error output of the command. Read-only.
int ExitCode Exit code of the command. Read-only. This feature is available only in the latest beta release..
SessionRemoteExceptionCollection Failures Collection of all errors that occured during batch operation. See SessionRemoteException. See also Capturing results of operations. Read-only. (Inherited from OperationResultBase.) This feature is available only in the latest beta release.
bool IsSuccess Is true, if Failures is empty collection. Read-only. (Inherited from OperationResultBase.) This feature is available only in the latest beta release.
string Output Standard output of the command. Read-only.

Methods

Name Description
Check Noop, if IsSuccess is true. Throws the first error in Failures, if IsSuccess is false. This feature is available only in the latest beta release.

Advertisement

Remarks

Instance of the class is returned by Session.ExecuteCommand.

Last modified: by martin