Differences

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

library_commandexecutionresult 2014-10-24 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]].
-===== Syntax =====+===== [[syntax]] Syntax =====
Namespace: ''WinSCP'' Namespace: ''WinSCP''
- 
-Prior to 5.6.2 beta: &beta 
- 
-<code csharp *> 
-public sealed class CommandExecutionResult 
-</code> 
- 
-<code vbnet *> 
-Public NotInheritable Class CommandExecutionResult 
-</code> 
- 
-Since 5.6.2 beta: 
<code csharp *> <code csharp *>
-public sealed class CommandExecutionResult : OperationResultBase+public sealed class CommandExecutionResult : OperationResultBase, ICommandExecutionResult
</code> </code>
Line 24: Line 12:
Public NotInheritable Class CommandExecutionResult Public NotInheritable Class CommandExecutionResult
    Inherits OperationResultBase     Inherits OperationResultBase
 +    Implements ICommandExecutionResult
</code> </code>
===== Properties ===== ===== Properties =====
^ Name ^ Description ^ ^ Name ^ Description ^
-| 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. &beta_feature. | +| 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]]''.) &beta_feature | +| [[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]]''.) &beta_feature | +| 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. |+| string ==Output== | Standard output of the command. Read-only. |
===== Methods ===== ===== Methods =====
^ Name ^ Description ^ ^ Name ^ Description ^
-| Check | Noop, if ''IsSuccess'' is ''true''. Throws the first error in ''Failures'', if ''IsSuccess'' is ''false''. &amp;beta_feature |+| Check | Noop, if ''IsSuccess'' is ''true''. Throws the first error in ''Failures'', if ''IsSuccess'' is ''false''. (Inherited from &#039;'[[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