Differences

This shows you the differences between the selected revisions of the page.

library_commandexecutionresult 2012-02-29 library_commandexecutionresult 2026-11-12 (current)
Line 2: Line 2:
Represents results of [[library_session_executecommand|Session.ExecuteCommand]]. Represents results of [[library_session_executecommand|Session.ExecuteCommand]].
-&beta_feature +===== [[syntax]] Syntax =====
- +
-===== Syntax =====+
Namespace: ''WinSCP'' Namespace: ''WinSCP''
-<code csharp> +<code csharp *> 
-public sealed class CommandExecutionResult+public sealed class CommandExecutionResult : OperationResultBase, ICommandExecutionResult 
 +</code> 
 + 
 +<code vbnet *> 
 +Public NotInheritable Class CommandExecutionResult 
 +    Inherits OperationResultBase 
 +    Implements ICommandExecutionResult
</code> </code>
===== Properties ===== ===== Properties =====
^ Name ^ Description ^ ^ Name ^ Description ^
-| string Output | Standard output of the command. Read-only. | +| string ==ErrorOutput== | Error output of the command. Read-only. | 
-| string ErrorOutput| Error output of the command. Read-only. |+| int ==ExitCode== | Exit code of the command. Read-only. | 
 +| [[library_doc_collections|SessionRemoteExceptionCollection]] ==Failures== | Collection of all errors that occured during batch operation. See ''[[library_sessionremoteexception|SessionRemoteException]]''. See also [[library_session#results|Capturing results of operations]]. Read-only. (Inherited from ''[[library_operationresultbase|OperationResultBase]]''.) | 
 +| bool ==IsSuccess== | Is ''true'', if ''Failures'' is empty collection. Read-only. (Inherited from ''[[library_operationresultbase|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 ''[[library_operationresultbase|OperationResultBase]]''.) |
===== Remarks ===== ===== Remarks =====
-Instance of the class is returned by [[library_session_executecommand|Session.ExecuteCommand]].+This class can only be instantiated by the WinSCP assembly. To get an instance of the class, call [[library_session_executecommand|''Session.ExecuteCommand'']].

Last modified: by martin