Muokkaa

Jaa


VerificationRule Enum

Definition

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

public enum class VerificationRule
public enum VerificationRule
type VerificationRule = 
Public Enum VerificationRule
Inheritance
VerificationRule

Fields

Name Value Description
Required 0

The conditional expression specified in an VerificationAttribute instance is required.

Prohibited 1

The conditional expression specified in an VerificationAttribute instance is prohibited.

NotEmptyString 2

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

Remarks

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.

Applies to

See also