Condividi tramite


Metodo UITestPropertyProvider.GetPropertyForControlState

Quando è sottoposto a override in una classe derivata, restituisce una matrice di nomi di proprietà e una matrice di tutti i valori di stato del controllo specificato che corrispondono al valore di stato del controllo specificato.

Spazio dei nomi:  Microsoft.VisualStudio.TestTools.UITesting
Assembly:  Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)

Sintassi

'Dichiarazione
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[]

Parametri

  • stateValues
    Tipo: array<System.Boolean[]%
    (Output) Matrice di valori booleani per le proprietà restituite.

Valore restituito

Tipo: array<System.String[]
Matrice di nomi di proprietà del controllo specificato che corrispondono al valore di stato del controllo specificato.

Sicurezza di .NET Framework

Vedere anche

Riferimenti

UITestPropertyProvider Classe

Spazio dei nomi Microsoft.VisualStudio.TestTools.UITesting

UITestControl

ControlStates

Altre risorse

Abilitare il test codificato dell'interfaccia utente per i controlli