ValidationRule.RuleName 屬性

注意:這個應用程式開發介面現在已經過時。

在衍生類別中覆寫時,取得當選取規則或規則顯示於編輯器中時,使用者介面中所顯示的名稱。

命名空間:  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
[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 ();
}
[<ObsoleteAttribute("This method is no longer used.  Use DisplayNameAttribute on the class to set a display name for this rule.", 
    false)>]
abstract RuleName : string with get
[<ObsoleteAttribute("This method is no longer used.  Use DisplayNameAttribute on the class to set a display name for this rule.", 
    false)>]
override RuleName : string with get
function get RuleName () : String

屬性值

型別:System.String
驗證規則的名稱。

備註

這會用於使用者介面當地語系化。

.NET Framework 安全性

請參閱

參考

ValidationRule 類別

Microsoft.VisualStudio.TestTools.WebTesting 命名空間