System.Web.UI.VerificationRule Enumeration

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

Syntax

public enum VerificationRule

Remarks

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

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

Members

Member NameDescription
NotEmptyString

The conditional expression specified in an System.Web.UI.VerificationAttribute instance must have a left hand side that is not an empty string ("").

Prohibited

The conditional expression specified in an System.Web.UI.VerificationAttribute instance is prohibited.

Required

The conditional expression specified in an System.Web.UI.VerificationAttribute instance is required.

Requirements

Namespace: System.Web.UI
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0