Condividi tramite


Proprietà ValidationRule.RuleName

Nota: questa API è ora obsoleta.

Quando se ne esegue l'override in una classe derivata, viene ottenuto il nome visualizzato nell'interfaccia utente quando una regola viene selezionata o mostrata nell'editor.

Spazio dei nomi:  Microsoft.VisualStudio.TestTools.WebTesting
Assembly:  Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)

Sintassi

'Dichiarazione
<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
    Get
[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
[<ObsoleteAttribute("This method is no longer used.  Use DisplayNameAttribute on the class to set a display name for this rule.", 
    false)>]
override RuleName : string
function get RuleName () : String

Valore proprietà

Tipo: System.String
Nome della regola di convalida.

Note

Viene utilizzata per la localizzazione dell'interfaccia utente.

Sicurezza di .NET Framework

Vedere anche

Riferimenti

ValidationRule Classe

Spazio dei nomi Microsoft.VisualStudio.TestTools.WebTesting