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.

C#
protected virtual string GetAutomationIdCore();

Returns

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.

Applies to

Produk Versi
Windows App SDK 0.8, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6

See also