GetNameCore Method
Collapse the table of content
Expand the table of content

TextBoxAutomationPeer.GetNameCore Method

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets the UI Automation Name value from the element that is associated with this TextBoxAutomationPeer. Called by GetName.

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

protected override string GetNameCore()

Return Value

Type: System.String
The UI Automation Name of the element that is associated with this automation peer.

This implementation first checks if the base implementation is providing a value for UI Automation Name. If the base value is null, then this method returns the TextBox.Text of the owner instead.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

© 2017 Microsoft