Class PreconditionGroupResult
public class PreconditionGroupResult : PreconditionResult, IResult
- Inheritance
-
PreconditionGroupResult
- Implements
- Inherited Members
Constructors
PreconditionGroupResult(CommandError?, string, ICollection<PreconditionResult>)
protected PreconditionGroupResult(CommandError? error, string errorReason, ICollection<PreconditionResult> preconditions)
Parameters
error
CommandError?errorReason
stringpreconditions
ICollection<PreconditionResult>
Properties
PreconditionResults
public IReadOnlyCollection<PreconditionResult> PreconditionResults { get; }
Property Value
Methods
FromError(IResult)
public static PreconditionGroupResult FromError(IResult result)
Parameters
result
IResult
Returns
FromError(Exception)
public static PreconditionGroupResult FromError(Exception ex)
Parameters
ex
Exception
Returns
FromError(string, ICollection<PreconditionResult>)
public static PreconditionGroupResult FromError(string reason, ICollection<PreconditionResult> preconditions)
Parameters
reason
stringpreconditions
ICollection<PreconditionResult>
Returns
FromSuccess()
public static PreconditionGroupResult FromSuccess()
Returns
ToString()
Returns a string indicating whether the PreconditionResult is successful.
public override string ToString()