Represents a single, self-describing validation rule applied to a process result.
public sealed class ValidationRule<TProcessResult>
where TProcessResult : ProcessResult
kind:method, kind:property, kind:ctor. Press Esc to clear.ValidationRule(Func<TProcessResult, Boolean>, String?, String?, Func<TProcessResult, String>?)Initialises a new instance of the ValidationRule<TProcessResult> class.FailureMessageGets the constant failure message, if any.FailureMessageFactoryGets the factory that produces a result-specific failure message, if any.NameGets the human-readable name of the rule, used when reporting failures.PredicateGets the predicate that evaluates the process result.GetFailureMessage(TProcessResult)Produces the failure message for a given result, preferring the factory when present.