Bewerken

Delen via


VerificationAttribute Constructors

Definition

Initializes a new instance of the VerificationAttribute class.

Overloads

VerificationAttribute(String, String, VerificationReportLevel, Int32, String)

Initializes a new instance of the VerificationAttribute class with accessibility guideline, checkpoint, reporting level, checkpoint priority, and error message.

VerificationAttribute(String, String, VerificationReportLevel, Int32, String, VerificationRule, String)

Initializes a new instance of the VerificationAttribute class with accessibility guideline, checkpoint, reporting level, checkpoint priority, error message, VerificationRule.value, and related conditional property.

VerificationAttribute(String, String, VerificationReportLevel, Int32, String, VerificationRule, String, VerificationConditionalOperator, String, String)

Initializes a new instance of the VerificationAttribute class with accessibility guideline, checkpoint, reporting level, checkpoint priority, error message, VerificationRule.value, related conditional property, a related conditional property value, and a reference guideline URL.

VerificationAttribute(String, String, VerificationReportLevel, Int32, String)

Initializes a new instance of the VerificationAttribute class with accessibility guideline, checkpoint, reporting level, checkpoint priority, and error message.

public:
 VerificationAttribute(System::String ^ guideline, System::String ^ checkpoint, System::Web::UI::VerificationReportLevel reportLevel, int priority, System::String ^ message);
public VerificationAttribute (string guideline, string checkpoint, System.Web.UI.VerificationReportLevel reportLevel, int priority, string message);
new System.Web.UI.VerificationAttribute : string * string * System.Web.UI.VerificationReportLevel * int * string -> System.Web.UI.VerificationAttribute
Public Sub New (guideline As String, checkpoint As String, reportLevel As VerificationReportLevel, priority As Integer, message As String)

Parameters

guideline
String

The accessibility guideline the verification rule describes.

checkpoint
String

The checkpoint within the guideline.

reportLevel
VerificationReportLevel

One of the VerificationReportLevel values.

priority
Int32

The priority of the checkpoint.

message
String

The message displayed when the verification rule is true.

Remarks

The VerificationAttribute constructor of the VerificationAttribute class specifies the minimal amount of information needed to define a verification rule. The following default values for the VerificationAttribute instance are assumed:

Applies to

VerificationAttribute(String, String, VerificationReportLevel, Int32, String, VerificationRule, String)

Initializes a new instance of the VerificationAttribute class with accessibility guideline, checkpoint, reporting level, checkpoint priority, error message, VerificationRule.value, and related conditional property.

public:
 VerificationAttribute(System::String ^ guideline, System::String ^ checkpoint, System::Web::UI::VerificationReportLevel reportLevel, int priority, System::String ^ message, System::Web::UI::VerificationRule rule, System::String ^ conditionalProperty);
public VerificationAttribute (string guideline, string checkpoint, System.Web.UI.VerificationReportLevel reportLevel, int priority, string message, System.Web.UI.VerificationRule rule, string conditionalProperty);
new System.Web.UI.VerificationAttribute : string * string * System.Web.UI.VerificationReportLevel * int * string * System.Web.UI.VerificationRule * string -> System.Web.UI.VerificationAttribute
Public Sub New (guideline As String, checkpoint As String, reportLevel As VerificationReportLevel, priority As Integer, message As String, rule As VerificationRule, conditionalProperty As String)

Parameters

guideline
String

The accessibility guideline the verification rule describes.

checkpoint
String

The checkpoint within the guideline.

reportLevel
VerificationReportLevel

One of the VerificationReportLevel values.

priority
Int32

The priority of the checkpoint.

message
String

The message displayed when the verification rule is true.

rule
VerificationRule

One of the VerificationRule.values.

conditionalProperty
String

The left side of a conditional expression used to verify the accessibility rule.

Remarks

The conditionalProperty parameter is another property that is used as part of the conditional expression to evaluate the verification rule. For example, if the rule parameter is NotEmptyString then the related property specified by conditionalProperty must not be an empty string ("").

The following default values for the VerificationAttribute instance are assumed:

To specify values of the properties in the preceding list beyond their default values, use the VerificationAttribute constructor overload.

Applies to

VerificationAttribute(String, String, VerificationReportLevel, Int32, String, VerificationRule, String, VerificationConditionalOperator, String, String)

Initializes a new instance of the VerificationAttribute class with accessibility guideline, checkpoint, reporting level, checkpoint priority, error message, VerificationRule.value, related conditional property, a related conditional property value, and a reference guideline URL.

public:
 VerificationAttribute(System::String ^ guideline, System::String ^ checkpoint, System::Web::UI::VerificationReportLevel reportLevel, int priority, System::String ^ message, System::Web::UI::VerificationRule rule, System::String ^ conditionalProperty, System::Web::UI::VerificationConditionalOperator conditionalOperator, System::String ^ conditionalValue, System::String ^ guidelineUrl);
public VerificationAttribute (string guideline, string checkpoint, System.Web.UI.VerificationReportLevel reportLevel, int priority, string message, System.Web.UI.VerificationRule rule, string conditionalProperty, System.Web.UI.VerificationConditionalOperator conditionalOperator, string conditionalValue, string guidelineUrl);
new System.Web.UI.VerificationAttribute : string * string * System.Web.UI.VerificationReportLevel * int * string * System.Web.UI.VerificationRule * string * System.Web.UI.VerificationConditionalOperator * string * string -> System.Web.UI.VerificationAttribute
Public Sub New (guideline As String, checkpoint As String, reportLevel As VerificationReportLevel, priority As Integer, message As String, rule As VerificationRule, conditionalProperty As String, conditionalOperator As VerificationConditionalOperator, conditionalValue As String, guidelineUrl As String)

Parameters

guideline
String

The accessibility guideline the verification rule describes.

checkpoint
String

The checkpoint within the guideline.

reportLevel
VerificationReportLevel

One of the VerificationReportLevel values.

priority
Int32

The priority of the checkpoint.

message
String

The message displayed when the verification rule is true.

rule
VerificationRule

One of the VerificationRule.values.

conditionalProperty
String

The left side of a conditional expression used to verify the accessibility rule.

conditionalOperator
VerificationConditionalOperator

One of the VerificationConditionalOperator values.

conditionalValue
String

The right hand side of a conditional expression used to verify the accessibility rule.

guidelineUrl
String

A reference URL for guideline.

Remarks

This VerificationAttribute allows you to create an instance of the VerificationAttribute class with all the possible properties specified.

Applies to