Propriedade ValidationRule.RuleName

Observação: esta API agora está obsoleta.

Quando substituído em uma classe derivada, obtém o nome exibido na interface do usuário quando uma regra é selecionada ou mostrada no editor.

Namespace:  Microsoft.VisualStudio.TestTools.WebTesting
Assembly:  Microsoft.VisualStudio.QualityTools.WebTestFramework (em Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)

Sintaxe

'Declaração
<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

Valor de propriedade

Tipo: System.String
O nome da regra de validação.

Comentários

Isso é usado para a localização da interface do usuário.

Segurança do .NET Framework

Consulte também

Referência

ValidationRule Classe

Namespace Microsoft.VisualStudio.TestTools.WebTesting