CommandExecutionResult Class

Represents results of Session.ExecuteCommand.

Syntax

Namespace: WinSCP

Advertisements:
C#
public sealed class CommandExecutionResult : OperationResultBase
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.
SessionRemoteExceptionCollection Failures Collection of all errors that occured during batch operation. See SessionRemoteException. See also Capturing results of operations. Read-only. (Inherited from OperationResultBase.)
bool IsSuccess Is true, if Failures is empty collection. Read-only. (Inherited from OperationResultBase.)
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. (Inherited from OperationResultBase.)

Remarks

Instance of the class is returned by Session.ExecuteCommand.

 
  library_commandexecutionresult.txt · Last modified: by martin
 

Search Documentation

This page

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

Associations

Site design by Black Gate