ValidationHelper(IValidationComponent) constructor¶
Defined in
Type: ValidationHelper
Namespace: ReactiveUI.Validation.Reactive.Helpers
Assembly: ReactiveUI.Validation.Reactive.dll
Applies to
net10.0, net10.0-ios26.0, net10.0-macos26.0, net10.0-maccatalyst26.0, net10.0-android36.0, net10.0-tvos26.0, net10.0-windows10.0.19041, net9.0, net9.0-windows10.0.19041, net8.0, net8.0-windows10.0.19041, net462, net481
Overloads¶
-
public ValidationHelper(IValidationComponent validation) -
public ValidationHelper(IValidationComponent validation, IDisposable? cleanup)
1. Overload¶
Attributes: [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")]
public ValidationHelper(IValidationComponent validation)
Summary: Initializes a new instance of the ValidationHelper class.
Parameters
| Name | Type | Description |
|---|---|---|
validation | [IValidationComponent](# | Validation property. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | Thrown when validation is null. |
2. Overload¶
Attributes: [RequiresUnreferencedCode("WhenAnyValue may reference members that could be trimmed in AOT scenarios.")]
public ValidationHelper(IValidationComponent validation, IDisposable? cleanup)
Summary: Initializes a new instance of the ValidationHelper class.
Parameters
| Name | Type | Description |
|---|---|---|
validation | [IValidationComponent](# | Validation property. |
cleanup | IDisposable? | The disposable to dispose when the helper is disposed, or null for none. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | Thrown when validation is null. |