Differences

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

library_commandexecutionresult 2012-09-24 library_commandexecutionresult 2014-10-24
Line 4: Line 4:
===== Syntax ===== ===== Syntax =====
Namespace: ''WinSCP'' Namespace: ''WinSCP''
 +
 +Prior to 5.6.2 beta: &beta
<code csharp *> <code csharp *>
Line 11: Line 13:
<code vbnet *> <code vbnet *>
Public NotInheritable Class CommandExecutionResult Public NotInheritable Class CommandExecutionResult
 +</code>
 +
 +Since 5.6.2 beta:
 +
 +<code csharp *>
 +public sealed class CommandExecutionResult : OperationResultBase
 +</code>
 +
 +<code vbnet *>
 +Public NotInheritable Class CommandExecutionResult
 +    Inherits OperationResultBase
</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. &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]]''.) &beta_feature |
 +| bool IsSuccess | Is ''true'', if ''Failures'' is empty collection. Read-only. (Inherited from ''[[library_operationresultbase|OperationResultBase]]''.) &beta_feature |
 +| 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''. &beta_feature |
===== Remarks ===== ===== Remarks =====
Instance of the class is returned by [[library_session_executecommand|Session.ExecuteCommand]]. Instance of the class is returned by [[library_session_executecommand|Session.ExecuteCommand]].

Last modified: by martin