Class CollectionVariableValidationEvent<TKey, TElement, TValidationResult>
Represents a generic validation event emitted by an IReadOnlyCollectionVariable<TKey, TElement, TValidationResult>.
public class CollectionVariableValidationEvent<TKey, TElement, TValidationResult> : ICollectionVariableValidationEvent<TValidationResult>, ICollectionVariableValidationEvent, IVariableNodeEvent where TKey : notnull where TElement : notnull
Type Parameters
TKeyKey type.
TElementElement type.
TValidationResultVariable's validation result type.
- Inheritance
-
CollectionVariableValidationEvent<TKey, TElement, TValidationResult>
- Implements
-
ICollectionVariableValidationEvent<TValidationResult>
- Inherited Members
Constructors
CollectionVariableValidationEvent(IReadOnlyCollectionVariable<TKey, TElement, TValidationResult>, Chain<TValidationResult>, Chain<TValidationResult>, VariableState, IReadOnlyList<CollectionVariableElementSnapshot<TElement, TValidationResult>>, CollectionVariableChangeEvent<TKey, TElement, TValidationResult>?)
Creates a new CollectionVariableValidationEvent<TKey, TElement, TValidationResult> instance.
public CollectionVariableValidationEvent(IReadOnlyCollectionVariable<TKey, TElement, TValidationResult> variable, Chain<TValidationResult> previousErrors, Chain<TValidationResult> previousWarnings, VariableState previousState, IReadOnlyList<CollectionVariableElementSnapshot<TElement, TValidationResult>> elements, CollectionVariableChangeEvent<TKey, TElement, TValidationResult>? associatedChange)
Parameters
variableIReadOnlyCollectionVariable<TKey, TElement, TValidationResult>Variable node that emitted this event.
previousErrorsChain<TValidationResult>Collection of validation errors before the change.
previousWarningsChain<TValidationResult>Collection of validation warnings before the change.
previousStateVariableStatePrevious state of the Variable.
elementsIReadOnlyList<CollectionVariableElementSnapshot<TElement, TValidationResult>>Collection of elements associated with this event.
associatedChangeCollectionVariableChangeEvent<TKey, TElement, TValidationResult>ICollectionVariableChangeEvent instance associated with this validation event.
Properties
AssociatedChange
ICollectionVariableChangeEvent instance associated with this validation event.
public CollectionVariableChangeEvent<TKey, TElement, TValidationResult>? AssociatedChange { get; }
Property Value
- CollectionVariableChangeEvent<TKey, TElement, TValidationResult>
Elements
Collection of elements associated with this event.
public IReadOnlyList<CollectionVariableElementSnapshot<TElement, TValidationResult>> Elements { get; }
Property Value
- IReadOnlyList<CollectionVariableElementSnapshot<TElement, TValidationResult>>
NewErrors
Collection of validation errors after the change.
public Chain<TValidationResult> NewErrors { get; }
Property Value
- Chain<TValidationResult>
NewState
Current state of the Variable.
public VariableState NewState { get; }
Property Value
NewWarnings
Collection of validation warnings after the change.
public Chain<TValidationResult> NewWarnings { get; }
Property Value
- Chain<TValidationResult>
PreviousErrors
Collection of validation errors before the change.
public Chain<TValidationResult> PreviousErrors { get; }
Property Value
- Chain<TValidationResult>
PreviousState
Previous state of the Variable.
public VariableState PreviousState { get; }
Property Value
PreviousWarnings
Collection of validation warnings before the change.
public Chain<TValidationResult> PreviousWarnings { get; }
Property Value
- Chain<TValidationResult>
Variable
Variable node that emitted this event.
public IReadOnlyCollectionVariable<TKey, TElement, TValidationResult> Variable { get; }
Property Value
- IReadOnlyCollectionVariable<TKey, TElement, TValidationResult>