AutomationPeer.GetAutomationIdCore Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.