VerificationAttribute 构造函数

定义

初始化 VerificationAttribute 类的新实例。

重载

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

使用可访问性准则、检查点、报告级别、检查点优先级和错误信息初始化 VerificationAttribute 类的新实例。

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

使用可访问性准则、检查点、报告级别、检查点优先级、错误信息、VerificationRule 值和相关条件属性初始化 VerificationAttribute 类的新实例。

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

使用可访问性准则、检查点、报告级别、检查点优先级、错误信息、VerificationRule 值、相关条件属性、相关条件属性值和引用准则 URL 初始化 VerificationAttribute 类的新实例。

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

使用可访问性准则、检查点、报告级别、检查点优先级和错误信息初始化 VerificationAttribute 类的新实例。

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)

参数

guideline
String

验证规则描述的可访问性准则。

checkpoint
String

准则中的检查点。

priority
Int32

检查点的优先级。

message
String

验证规则为 true 时显示的消息。

注解

VerificationAttribute类的VerificationAttribute构造函数指定定义验证规则所需的最小信息量。 假定实例的 VerificationAttribute 以下默认值:

适用于

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

使用可访问性准则、检查点、报告级别、检查点优先级、错误信息、VerificationRule 值和相关条件属性初始化 VerificationAttribute 类的新实例。

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)

参数

guideline
String

验证规则描述的可访问性准则。

checkpoint
String

准则中的检查点。

priority
Int32

检查点的优先级。

message
String

验证规则为 true 时显示的消息。

conditionalProperty
String

用来验证可访问性规则的条件表达式的左侧。

注解

参数 conditionalProperty 是另一个属性,用作条件表达式的一部分来计算验证规则。 例如,如果 rule 参数为 NotEmptyString ,则 指定的 conditionalProperty 相关属性不得为空字符串 (“”) 。

假定实例的 VerificationAttribute 以下默认值:

若要指定上述列表中的属性值(超出其默认值),请使用 VerificationAttribute 构造函数重载。

适用于

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

使用可访问性准则、检查点、报告级别、检查点优先级、错误信息、VerificationRule 值、相关条件属性、相关条件属性值和引用准则 URL 初始化 VerificationAttribute 类的新实例。

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)

参数

guideline
String

验证规则描述的可访问性准则。

checkpoint
String

准则中的检查点。

priority
Int32

检查点的优先级。

message
String

验证规则为 true 时显示的消息。

conditionalProperty
String

用来验证可访问性规则的条件表达式的左侧。

conditionalValue
String

用来验证可访问性规则的条件表达式的右侧。

guidelineUrl
String

guideline 的引用 URL。

注解

这样 VerificationAttribute ,就可以创建具有指定所有可能属性的 类的实例 VerificationAttribute

适用于