Class CollectionVariableRootValidationEvent<TKey, TElement, TValidationResult>
Represents a generic variable change event emitted by an IReadOnlyCollectionVariableRoot<TKey, TElement, TValidationResult>.
public class CollectionVariableRootValidationEvent<TKey, TElement, TValidationResult> : ICollectionVariableRootValidationEvent<TValidationResult>, ICollectionVariableRootValidationEvent, IVariableNodeEvent where TKey : notnull where TElement : VariableNode
Type Parameters
TKeyKey type.
TElementElement type.
TValidationResultValidation result type.
- Inheritance
-
CollectionVariableRootValidationEvent<TKey, TElement, TValidationResult>
- Implements
-
ICollectionVariableRootValidationEvent<TValidationResult>
- Inherited Members
Constructors
CollectionVariableRootValidationEvent(IReadOnlyCollectionVariableRoot<TKey, TElement, TValidationResult>, VariableState, Chain<TValidationResult>, Chain<TValidationResult>, CollectionVariableRootChangeEvent<TKey, TElement, TValidationResult>?, IVariableNodeEvent?)
Creates a new CollectionVariableRootValidationEvent<TKey, TElement, TValidationResult> instance.
public CollectionVariableRootValidationEvent(IReadOnlyCollectionVariableRoot<TKey, TElement, TValidationResult> variable, VariableState previousState, Chain<TValidationResult> previousErrors, Chain<TValidationResult> previousWarnings, CollectionVariableRootChangeEvent<TKey, TElement, TValidationResult>? associatedChange, IVariableNodeEvent? sourceEvent)
Parameters
variableIReadOnlyCollectionVariableRoot<TKey, TElement, TValidationResult>Variable node that emitted this event.
previousStateVariableStatePrevious state of the Variable.
previousErrorsChain<TValidationResult>Collection of validation errors before the change.
previousWarningsChain<TValidationResult>Collection of validation warnings before the change.
associatedChangeCollectionVariableRootChangeEvent<TKey, TElement, TValidationResult>ICollectionVariableRootChangeEvent instance associated with this validation event.
sourceEventIVariableNodeEventSource child node event.
Properties
AssociatedChange
ICollectionVariableRootChangeEvent instance associated with this validation event.
public CollectionVariableRootChangeEvent<TKey, TElement, TValidationResult>? AssociatedChange { get; }
Property Value
- CollectionVariableRootChangeEvent<TKey, 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>
SourceEvent
Source child node event.
public IVariableNodeEvent? SourceEvent { get; }
Property Value
Variable
Variable node that emitted this event.
public IReadOnlyCollectionVariableRoot<TKey, TElement, TValidationResult> Variable { get; }
Property Value
- IReadOnlyCollectionVariableRoot<TKey, TElement, TValidationResult>