Поделиться через


ValidationRule.RuleName - свойство

Примечание. Данный 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
[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 - пространство имен