UITestPropertyProvider.GetPropertyForControlState, méthode

En cas de substitution dans une classe dérivée, retourne un tableau de noms de propriété et un tableau de toutes les valeurs d'état pour le contrôle donné qui correspondent à la valeur d'état du contrôle spécifié.

Espace de noms :  Microsoft.VisualStudio.TestTools.UITesting
Assembly :  Microsoft.VisualStudio.TestTools.UITesting (dans Microsoft.VisualStudio.TestTools.UITesting.dll)

Syntaxe

'Déclaration
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[]

Paramètres

  • stateValues
    Type : array<System.Boolean[]%
    (Sortie) Tableau de valeurs booléennes pour les propriétés retournées.

Valeur de retour

Type : array<System.String[]
Tableau de noms de propriété pour le contrôle donné qui correspondent à la valeur d'état du contrôle spécifié.

Sécurité .NET Framework

Voir aussi

Référence

UITestPropertyProvider Classe

Microsoft.VisualStudio.TestTools.UITesting, espace de noms

UITestControl

ControlStates