Export (0) Print
Expand All
Expand Minimize

VerificationRule Enumeration

Specifies how conditional expressions defined by an VerificationAttribute instance are used in verification.

Namespace:  System.Web.UI
Assembly:  System.Web (in System.Web.dll)

public enum VerificationRule

Member nameDescription
NotEmptyStringThe conditional expression specified in an VerificationAttribute instance must have a left hand side that is not an empty string ("").
ProhibitedThe conditional expression specified in an VerificationAttribute instance is prohibited.
RequiredThe conditional expression specified in an VerificationAttribute instance is required.

When using extending a class, member or indexer with a VerificationAttribute, you may define how the conditional expression, defined by the ConditionalProperty and ConditionalValue properties, is used by specifying one of the VerificationRule values. If in the creation of the VerificationAttribute no VerificationRule is specified, the default value of Required is used.

The left side of a verification rule's conditional expression is the ConditionalProperty and the right side is the ConditionalValue. The VerificationConditionalOperator specifies how the ConditionalProperty is to be compared to the ConditionalValue.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0, 2.0

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft