Windows Dev Center

TextBoxAutomationPeer.GetNameCore Method

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

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

© 2015 Microsoft