ValidationRule.RuleName 属性

更新:2007 年 11 月

注意:此 API 现在已过时。

当在派生类中重写时,获取当规则选定或显示在编辑器中时用户界面中显示的名称。

命名空间:  Microsoft.VisualStudio.TestTools.WebTesting
程序集:  Microsoft.VisualStudio.QualityTools.WebTestFramework(在 Microsoft.VisualStudio.QualityTools.WebTestFramework.dll 中)

语法

声明
<ObsoleteAttribute("This method is no longer used.  Use DisplayNameAttribute on the class to set a display name for this rule.",  _
    False)> _
Public Overridable ReadOnly Property RuleName As String
用法
Dim instance As ValidationRule
Dim value As String

value = instance.RuleName
[ObsoleteAttribute("This method is no longer used.  Use DisplayNameAttribute on the class to set a display name for this rule.", 
    false)]
public virtual string RuleName { get; }
[ObsoleteAttribute(L"This method is no longer used.  Use DisplayNameAttribute on the class to set a display name for this rule.", 
    false)]
public:
virtual property String^ RuleName {
    String^ get ();
}
public function get RuleName () : String

属性值

类型:System.String

验证规则的名称。

备注

这用于用户界面的本地化。

权限

另请参见

参考

ValidationRule 类

ValidationRule 成员

Microsoft.VisualStudio.TestTools.WebTesting 命名空间