[]
Validating the typed value after parsing, after the input string has been converted to the DataType.
[TypeConverter(typeof(GenericInheritConverter))]
public class PostValidation
| Name | Description |
|---|---|
| AllowDbNull | Gets or sets a value indicating whether it is possible to enter DbNull value in the control. |
| CaseSensitive | Gets or sets a value indicating whether string comparisons are case-sensitive; otherwise, False. |
| ErrorMessage | Gets or sets error message shown in the standard message box and/or in the exception. |
| Inherit | Gets or sets an enumerable value indicating how to manages inheritance of the PostValidation properties from the host control properties. |
| Intervals | Gets a collection of intervals. The input value must belong to one of these intervals. |
| Validation | Gets or sets an enumerable value indicating the validation method. |
| Values | Gets or sets a predefined values used for matching the input value. |
| ValuesExcluded | Gets or sets a list of values that are not permitted as input value. |
| Name | Description |
|---|---|
| OnValidated(PostValidationEventArgs) | Raises the Validated event. |
| OnValidating(PostValidationEventArgs) | Raises the Validating event. |
| Reset() | Resets whole PostValidation property of base control |
| ResetCaseSensitive() | Restores the default value of the CaseSensitive property. |
| ResetErrorMessage() | Restores the default value of the ErrorMessage property. |
| ShouldSerializeCaseSensitive() | Specifies whether to save the value of the CaseSensitive property. |
| ShouldSerializeErrorMessage() | Specifies whether to save the value of the ErrorMessage property. |
| ShouldSerializeIntervals() | Specifies whether to save the value of the Intervals property. |
| ShouldSerializeValues() | Specifies whether to save the value of the Values property. |
| ShouldSerializeValuesExcluded() | Specifies whether to save the value of the ValuesExcluded property. |
| Validate(object, ErrorInfo) | Performs validation using the current settings of the PostValidation object. Returns true if vaidation was successful. |
| ValidateValuesAndIntervals(object, ErrorInfo) | Performs validation of the value against the collections of Values, ValuesExcluded and Intervals. |
| Name | Description |
|---|---|
| Validated | Occurs after the typed value has been validated |
| Validating | Occurs when programmatic typed value validating. |