AutomationProperties.GetAutomationId(DependencyObject) AutomationProperties.GetAutomationId(DependencyObject) AutomationProperties.GetAutomationId(DependencyObject) AutomationProperties.GetAutomationId(DependencyObject) Method

Definition

Gets the value of the AutomationProperties.AutomationId attached property for the specified DependencyObject.

public : static Platform::String GetAutomationId(DependencyObject element)
static winrt::hstring GetAutomationId(DependencyObject element) const;
public static string GetAutomationId(DependencyObject element)
Public Shared Function GetAutomationId(element As DependencyObject) As string

Parameters

Returns

string string

The UI Automation identifier for the specified element.