Summary
Composes self Specification
with MatchSpecification
negation:
Checks if string candidate not match a given Regex pattern.
Syntax
[PublicAPI]
[NotNull]
public static IComplexSpecification<string> NotMatch(this ICompositeSpecification<string> self, string pattern, RegexOptions options = null)
Attributes
Type |
Description |
PublicAPI |
|
NotNull |
|
Parameters
Name |
Type |
Description |
self |
ICompositeSpecification<string> |
Self specification. |
pattern |
string |
Regex pattern. |
options |
RegexOptions |
Regex matching options. |
Return Value
Exceptions
Type |
Description |
System.ArgumentNullException |
Thrown when self is null. |
System.ArgumentException |
Thrown when pattern is null or empty. |