IValidatorExtensionsFirstErrorType Method |
Namespace: CMS.Base
public static Type FirstErrorType( this IValidator validator )
Exception | Condition |
---|---|
ArgumentNullException | Thrown when validator is null. |
InvalidOperationException | Thrown when the Errors property of validator is an empty enumeration. |