)>,System.Func{-1,System.Boolean},System.String)}
,System.Func{-0,-1,System.Boolean},System.String)}
,System.Func{-1,System.Boolean},System.Func{-1,System.String})}
,System.Func{-0,-1,System.Boolean},System.Func{-0,-1,System.String})}
,System.Func{-0,-1,System.Boolean},System.Func{-0,-1,System.Boolean,System.String})}
Defined in Type: ObservableValidationReactiveUI.Validation.Components
Assembly: ReactiveUI.Validation.dll
Applies to
net10.0, net10.0-tvos26.0, net10.0-maccatalyst26.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net10.0-macos26.0, net10.0-windows10.0.19041, net10.0-ios26.0, net10.0-android36.0, net9.0, net9.0-windows10.0.19041, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-macos14.2, net8.0-maccatalyst17.5, net8.0-ios17.5, net8.0-tvos17.2, net8.0-windows10.0.19041, net8.0-macos14.5, netstandard2.1, net481, net462, net471
Overloads
- 1.
public ObservableValidation(TViewModel viewModel, IObservable<TValue> observable, Func<TValue, bool> isValidFunc, string message) - 2.
public ObservableValidation(TViewModel viewModel, IObservable<TValue> observable, Func<TViewModel, TValue, bool> isValidFunc, string message) - 3.
public ObservableValidation(TViewModel viewModel, IObservable<TValue> observable, Func<TValue, bool> isValidFunc, Func<TValue, string> messageFunc) - 4.
public ObservableValidation(TViewModel viewModel, IObservable<TValue> observable, Func<TViewModel, TValue, bool> isValidFunc, Func<TViewModel, TValue, string> messageFunc) - 5.
public ObservableValidation(TViewModel viewModel, IObservable<TValue> observable, Func<TViewModel, TValue, bool> isValidFunc, Func<TViewModel, TValue, bool, string> messageFunc) - 6.
public ObservableValidation(IObservable<IValidationState> observable)
1. Overload
public ObservableValidation(TViewModel viewModel, IObservable<TValue> observable, Func<TValue, bool> isValidFunc, string message)
Summary: Initializes a new instance of the ObservableValidation class.
Parameters
| Name | Type | Description |
|---|---|---|
viewModel | TViewModel | ViewModel instance. |
observable | IObservable | Observable that updates the view model property validity. |
isValidFunc | Func | Func to define if the viewModelProperty is valid or not. |
message | string | Validation error message as a constant. |
2. Overload
public ObservableValidation(TViewModel viewModel, IObservable<TValue> observable, Func<TViewModel, TValue, bool> isValidFunc, string message)
Summary: Initializes a new instance of the ObservableValidation class.
Parameters
| Name | Type | Description |
|---|---|---|
viewModel | TViewModel | ViewModel instance. |
observable | IObservable | Observable that updates the view model property validity. |
isValidFunc | Func | Func to define if the viewModelProperty is valid or not. |
message | string | Validation error message as a constant. |
3. Overload
public ObservableValidation(TViewModel viewModel, IObservable<TValue> observable, Func<TValue, bool> isValidFunc, Func<TValue, string> messageFunc)
Summary: Initializes a new instance of the ObservableValidation class.
Parameters
| Name | Type | Description |
|---|---|---|
viewModel | TViewModel | ViewModel instance. |
observable | IObservable | Observable that updates the view model property validity. |
isValidFunc | Func | Func to define if the viewModelProperty is valid or not. |
messageFunc | Func | Func to define the validation error message. |
4. Overload
public ObservableValidation(TViewModel viewModel, IObservable<TValue> observable, Func<TViewModel, TValue, bool> isValidFunc, Func<TViewModel, TValue, string> messageFunc)
Summary: Initializes a new instance of the ObservableValidation class.
Parameters
| Name | Type | Description |
|---|---|---|
viewModel | TViewModel | ViewModel instance. |
observable | IObservable | Observable that updates the view model property validity. |
isValidFunc | Func | Func to define if the viewModelProperty is valid or not. |
messageFunc | Func | Func to define the validation error message. |
5. Overload
public ObservableValidation(TViewModel viewModel, IObservable<TValue> observable, Func<TViewModel, TValue, bool> isValidFunc, Func<TViewModel, TValue, bool, string> messageFunc)
Summary: Initializes a new instance of the ObservableValidation class.
Parameters
| Name | Type | Description |
|---|---|---|
viewModel | TViewModel | ViewModel instance. |
observable | IObservable | Observable that updates the view model property validity. |
isValidFunc | Func | Func to define if the viewModelProperty is valid or not. |
messageFunc | Func | Func to define the validation error message. |
6. Overload
public ObservableValidation(IObservable<IValidationState> observable)
Summary: Initializes a new instance of the ObservableValidation class.
Parameters
| Name | Type | Description |
|---|---|---|
observable | IObservable | Observable that updates the view model property validity. |