AutomationPeer.GetAutomationIdCore AutomationPeer.GetAutomationIdCore AutomationPeer.GetAutomationIdCore AutomationPeer.GetAutomationIdCore Method

Definition

Provides the peer's behavior when a Microsoft UI Automation client calls GetAutomationId or an equivalent Microsoft UI Automation client API.

protected : virtual Platform::String GetAutomationIdCore()
virtual winrt::hstring GetAutomationIdCore() const;
protected virtual string GetAutomationIdCore()
Protected Overridable Function GetAutomationIdCore() As string

Returns

string string

The automation identifier.

Remarks

Providing a class-based behavior for AutomationId is uncommon. Typically, app authors set values for elements in the app by setting the AutomationProperties.AutomationId attached property in the XAML UI definition.

See also