IValidatorExtensionsContainsTValidatorError Method |
Returns a value indicating whether a validation error of type
TValidatorError is in
Errors.
Namespace: CMS.BaseAssembly: CMS.Base (in CMS.Base.dll) Version: 13.0.131
Syntax public static bool Contains<TValidatorError>(
this IValidator validator
)
Parameters
- validator
- Type: CMS.BaseIValidator
Validator whose errors to examine.
Type Parameters
- TValidatorError
- Validation error type to search for.
Return Value
Type:
BooleanReturns true if a validation error of type
TValidatorError is in
Errors, otherwise returns false.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IValidator. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Exceptions Exception | Condition |
---|
ArgumentNullException | Thrown when validator is null. |
See Also