Share via


AutomationProperties.GetAutomationId(DependencyObject) Metoda

Definice

Získá přidruženou AutomationId vlastnost pro zadaný 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

Parametry

element
DependencyObject

Zkontrolujte DependencyObject .

Návraty

Identifikátor model UI Automation pro zadaný prvek.

Poznámky

Pokud AutomationId vlastnost není nastavená, vrátí Name tato metoda vlastnost .

Platí pro

Viz také