Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
GetNameCore Method
Collapse the table of content
Expand the table of content

LabelAutomationPeer.GetNameCore Method

Gets the text label of the Label that is associated with this LabelAutomationPeer. This method is called by GetName.

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

protected override string GetNameCore()

Return Value

Type: System.String
The string that contains the label.

You can think of the name property as if it were a string of text that users use to explain the control they are referring to. Make certain that you have a textual representation for all controls in the graphical user interface (GUI) so that you can programmatically refer to the control in a localized manner.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft