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)

Syntax

Protected Overrides Function GetNameCore As String
protected override string GetNameCore()

Return Value

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

Remarks

This implementation first checks if the base implementation is providing a value for UI Automation Name. If the base value is nullNothingnullptra null reference (Nothing in Visual Basic), then this method returns the TextBox..::.Text of the owner instead.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Platforms

Windows Phone

See Also

Reference

TextBoxAutomationPeer Class

System.Windows.Automation.Peers Namespace