Class CommandResult<TResult>
Result of a command that may throw exception
Inheritance
System.Object
CommandResult<TResult>
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Neutronium.BuildingBlocks.ApplicationTools
Assembly: Neutronium.BuildingBlocks.ApplicationTools.dll
Syntax
public class CommandResult<TResult>
Type Parameters
Name | Description |
---|---|
TResult | Command result type |
Constructors
| Improve this Doc View SourceCommandResult()
Declaration
public CommandResult()
CommandResult(TResult)
Declaration
public CommandResult(TResult result)
Parameters
Type | Name | Description |
---|---|---|
TResult | result |
CommandResult(Exception)
Declaration
public CommandResult(Exception exception)
Parameters
Type | Name | Description |
---|---|---|
System.Exception | exception |
Properties
| Improve this Doc View SourceCancelled
Cancelled
Declaration
public bool Cancelled { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Exception
Exception if any
Declaration
public Exception Exception { get; }
Property Value
Type | Description |
---|---|
System.Exception |
HasError
HasError
Declaration
public bool HasError { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Result
Result
Declaration
public TResult Result { get; }
Property Value
Type | Description |
---|---|
TResult |
Success
Success
Declaration
public bool Success { get; }
Property Value
Type | Description |
---|---|
System.Boolean |