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 valeur de la propriété jointe AutomationProperties.AutomationId pour l’objet DependencyObject spécifié.
public:
static Platform::String ^ GetAutomationId(DependencyObject ^ element);
static winrt::hstring GetAutomationId(DependencyObject const& element);
public static string GetAutomationId(DependencyObject element);
function getAutomationId(element)
Public Shared Function GetAutomationId (element As DependencyObject) As String
Paramètres
- element
- DependencyObject
DependencyObject to case activée.
Retours
Identificateur UI Automation pour l’élément spécifié.
S’applique à
Voir aussi
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour