ContentElementAutomationPeer.GetAutomationIdCore Method ()


Gets the string that uniquely identifies the ContentElement that is associated with this ContentElementAutomationPeer. Called by GetAutomationId.

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

protected override string GetAutomationIdCore()

Return Value

Type: System.String

A string containing the automation identifier.

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

.NET Framework
Available since 3.0
Return to top