Share via


AutomationProperties.GetAutomationId(DependencyObject) Méthode

Définition

Obtient la propriété jointe AutomationId pour le DependencyObject spécifié.

public:
 static System::String ^ GetAutomationId(System::Windows::DependencyObject ^ element);
public static string GetAutomationId (System.Windows.DependencyObject element);
static member GetAutomationId : System.Windows.DependencyObject -> string
Public Shared Function GetAutomationId (element As DependencyObject) As String

Paramètres

element
DependencyObject

DependencyObject à vérifier.

Retours

Identificateur UI Automation de l’élément spécifié.

Remarques

Si AutomationId la propriété n’est pas définie, cette méthode retourne la Name propriété .

S’applique à

Voir aussi