This documentation is archived and is not being maintained.

FrameworkElementAutomationPeer.GetAutomationIdCore Method

Gets the AutomationIdentifier for the FrameworkElement that is associated with this FrameworkElementAutomationPeer. Called by GetAutomationId.

Namespace: System.Windows.Automation.Peers
Assembly: PresentationFramework (in presentationframework.dll)

protected override string GetAutomationIdCore ()
protected String GetAutomationIdCore ()
protected override function GetAutomationIdCore () : String
You cannot use methods in XAML.

Return Value

The automation identifier for the element associated with the FrameworkElementAutomationPeer, or Empty if there isn't an automation identifier.

The value of the automation identifier is the AutomationId property, and if that isn't set, it's the Name property.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0