ValidationSummaryAutomationPeer.GetNameCore Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets the UI Automation Name of the ValidationSummary that is associated with this ValidationSummaryAutomationPeer. Called by GetName.

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

Syntax

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

Return Value

Type: System.String
The UI Automation Name

Remarks

This implementation obtains the string name value from the owner control's header if available. Otherwise, the implementation calls base. This implementation is an exceptional case where the *Core method uses its own logic before attempting the call to base. The reason for this is because a ValidationSummary is associated with the content it is validating only at runtime. Any text string associated with a header for the owner provides a more predictable association between a ValidationSummary and the item set that its validation should apply to, therefore it is uncommon to set AutomationProperties.Name as an instance attached property on a ValidationSummary.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.