Summary
A validator that is used to verify the value is in a defined list without creating a specific enum
- Assembly
- Rocket
.Surgery .Extensions .FluentValidation .dll - Namespace
- Rocket
.Surgery .Extensions .FluentValidation - Base Types
-
- PropertyValidator
graph BT
Type-->Base0["PropertyValidator"]
Type["StringInValidator"]
class Type type-node
Syntax
public class StringInValidator : PropertyValidator
Attributes
Type | Description |
---|---|
Nullable |
|
NullableAttribute | |
PublicAPIAttribute |
Constructors
Name | Summary |
---|---|
StringInValidator |
Properties
Name | Value | Summary |
---|---|---|
Values | IEnumerable |
The values that being enforced.
|
Methods
Name | Value | Summary |
---|---|---|
IsValid |
bool | |
Prepare |
void |
Extension Methods
Name | Value | Summary |
---|---|---|
SetBackingValue |
T |
Sets the backing value.
From ValueExtensions
|
With |
TBuilder |
Adds the specified dictionary to the provided dictionary.
|