Interface IValidationContext
- Namespace
- ReactiveUI.Validation.Contexts
- Assembly
- ReactiveUI.Validation.dll
Core interface which all validation components must implement.
public interface IValidationContext : IValidationComponent, IReactiveObject, INotifyPropertyChanged, INotifyPropertyChanging, IEnableLogger, ICancelable, IDisposable
- Inherited Members
- Extension Methods
Remarks
Contains all of the IValidation
Properties
Valid
Gets an observable for the Valid state.
Property Value
Validations
Gets get the list of validations.
Property Value
Methods
Add(IValidationComponent)
Adds a validation into the validations collection.
Parameters
validation
IValidationComponent Validation component to be added into the collection.
GetIsValid()
Returns if the whole context is valid checking all the validations.
Returns
- bool
Returns true if the Validation
Context is valid, otherwise false.
Remove(IValidationComponent)
Removes a validation from the validations collection.
Parameters
validation
IValidationComponent Validation component to be removed from the collection.
RemoveMany(IEnumerable<IValidationComponent>)
Removes many validation components from the validations collection.
Parameters
validations
IEnumerable<IValidationComponent >Validation components to be removed from the collection.