expressappframework-devexpress-dot-persistent-dot-validation-c4ade0a2.md
Contains values which specify operator types to be used when comparing string values via the RuleStringComparisonAttribute.
Namespace : DevExpress.Persistent.Validation
Assembly : DevExpress.Persistent.Base.v25.2.dll
NuGet Package : DevExpress.Persistent.Base
public enum StringComparisonType
Public Enum StringComparisonType
| Name | Description |
|---|---|
Contains |
Specifies that the target string property’s value must contain a particular substring.
|
| EndsWith |
Specifies that the target string property’s value must end with a particular substring.
|
| Equals |
Specifies that the target string property’s value must equal a particular string.
|
| NotEquals |
Specifies that the target string property’s value must not equal a particular string.
|
| StartsWith |
Specifies that the target string property’s value must start with a particular substring.
|
The following properties accept/return StringComparisonType values:
These values are used to set the operatorType parameter of the RuleStringComparison attribute’s RuleStringComparisonAttribute constructor.
See Also