AutomationProperties.GetAutomationId(DependencyObject) Metoda

Definicja

Pobiera dołączoną AutomationId właściwość dla określonego DependencyObjectelementu .

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

Element DependencyObject do sprawdzenia.

Zwraca

Identyfikator automatyzacja interfejsu użytkownika dla określonego elementu.

Uwagi

Jeśli AutomationId właściwość nie jest ustawiona, ta metoda zwraca Name właściwość .

Dotyczy

Zobacz też