Aracılığıyla paylaş


UITestPropertyProvider.GetPropertyForControlState Yöntem

Türetilmiş bir sınıfta geçersiz olduğunda, bir dizi özellik adları ve verilen denetim için belirtilen denetim durumu değerle eşleşen tüm durum değerler dizisini verir.

Ad alanı:  Microsoft.VisualStudio.TestTools.UITesting
Derleme:  Microsoft.VisualStudio.TestTools.UITesting (Microsoft.VisualStudio.TestTools.UITesting.dll içinde)

Sözdizimi

'Bildirim
Public MustOverride Function GetPropertyForControlState ( _
    uiTestControl As UITestControl, _
    uiState As ControlStates, _
    <OutAttribute> ByRef stateValues As Boolean() _
) As String()
public abstract string[] GetPropertyForControlState(
    UITestControl uiTestControl,
    ControlStates uiState,
    out bool[] stateValues
)
public:
virtual array<String^>^ GetPropertyForControlState(
    UITestControl^ uiTestControl, 
    ControlStates uiState, 
    [OutAttribute] array<bool>^% stateValues
) abstract
abstract GetPropertyForControlState : 
        uiTestControl:UITestControl * 
        uiState:ControlStates * 
        stateValues:bool[] byref -> string[] 
public abstract function GetPropertyForControlState(
    uiTestControl : UITestControl, 
    uiState : ControlStates, 
    stateValues : boolean[]
) : String[]

Parametreler

  • stateValues
    Tür: array<System.Boolean[]%
    (Çıkış) İade edilen özellikleri Boolean değerleri dizisi.

Dönüş Değeri

Tür: array<System.String[]
Belirtilen denetim durumu değerle eşleşen özellik adları verilen denetim dizisi.

.NET Framework Güvenliği

Ayrıca bkz.

Başvuru

UITestPropertyProvider Sınıf

Microsoft.VisualStudio.TestTools.UITesting Ad Alanı

UITestControl

ControlStates

Diğer Kaynaklar

Kodlanmış UI denetimleri sınama işlemini etkinleştirmek