Skip to content

)>,System.Func{-0,-1,System.Boolean},System.Func{-0,-1,System.Boolean,ReactiveUI.Validation.Collections.IValidationText})}

Defined in

Type: ObservableValidationBase Namespace: ReactiveUI.Validation.Components Assembly: ReactiveUI.Validation.dll

Applies to

net11.0, net11.0-maccatalyst27.2, net11.0-tvos27.2, net11.0-windows10.0.19041, net11.0-android37.0, net11.0-macos27.2, net11.0-ios27.2, net10.0, net10.0-macos26.0, net10.0-android36.0, net10.0-tvos26.0, net10.0-ios26.0, net10.0-maccatalyst26.0, net10.0-windows10.0.19041, net48, net47, net471, net472, net481

Overloads

  1. protected ObservableValidationBase(TViewModel viewModel, IObservable<TValue> observable, Func<TViewModel, TValue, bool> isValidFunc, Func<TViewModel, TValue, bool, IValidationText> messageFunc)

  2. protected ObservableValidationBase(IObservable<IValidationState> observable)

1. Overload

protected ObservableValidationBase(TViewModel viewModel, IObservable<TValue> observable, Func<TViewModel, TValue, bool> isValidFunc, Func<TViewModel, TValue, bool, IValidationText> messageFunc)

View source (opens in a new tab)

Summary: Initializes a new instance of the ObservableValidationBase class.

Parameters

NameTypeDescription
viewModelTViewModelViewModel instance.
observableIObservable (opens in a new tab)Observable that updates the view model property validity.
isValidFuncFunc (opens in a new tab)Func to define if the viewModelProperty is valid or not.
messageFuncFunc (opens in a new tab)Func to define the validation error message.

2. Overload

protected ObservableValidationBase(IObservable<IValidationState> observable)

View source (opens in a new tab)

Summary: Initializes a new instance of the ObservableValidationBase class.

Parameters

NameTypeDescription
observableIObservable (opens in a new tab)Observable that updates the view model property validity.