AutomationElement.RuntimeIdProperty Champ

Définition

Identifie la propriété qui contient l'identificateur d'exécution de l'élément.

public: static initonly System::Windows::Automation::AutomationProperty ^ RuntimeIdProperty;
public static readonly System.Windows.Automation.AutomationProperty RuntimeIdProperty;
 staticval mutable RuntimeIdProperty : System.Windows.Automation.AutomationProperty
Public Shared ReadOnly RuntimeIdProperty As AutomationProperty 

Valeur de champ

Exemples

L’exemple suivant récupère la valeur actuelle de la propriété .

int[] runtimeIdentifier = (int[])
    autoElement.GetCurrentPropertyValue(AutomationElement.RuntimeIdProperty);
Dim runtimeIdentifier As Integer() = _
    CType(autoElement.GetCurrentPropertyValue(AutomationElement.RuntimeIdProperty), Integer())

Remarques

Cet identificateur est utilisé par UI Automation applications clientes. UI Automation fournisseurs doivent utiliser l’identificateur équivalent dans AutomationElementIdentifiers.

La propriété d’ID d’exécution spécifie un ID unique AutomationElement sur le bureau.

La valeur de retour de la propriété est un tableau de type Int32. Il n’y a pas de valeur par défaut.

S’applique à

Voir aussi