Udostępnij za pośrednictwem


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() = GetAutomationIdCore;
winrt::hstring GetAutomationIdCore();
protected virtual string GetAutomationIdCore();
function getAutomationIdCore()
Protected Overridable Function GetAutomationIdCore () As String

Returns

String

Platform::String

winrt::hstring

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.

Applies to

See also