AutomationProperties.GetAutomationId(DependencyObject) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient la AutomationId propriété jointe pour le DependencyObject.
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 pour l’élément spécifié.
Remarques
Si AutomationId la propriété n’est pas définie, cette méthode retourne la Name propriété.