UIElement3DAutomationPeer.GetNameCore 方法

定义

返回一个字符串,该字符串表示与此 UIElement3D 关联的 UIElement3DAutomationPeer。 此方法由 GetName() 调用。

protected:
 override System::String ^ GetNameCore();
protected override string GetNameCore ();
override this.GetNameCore : unit -> string
Protected Overrides Function GetNameCore () As String

返回

String

一个字符串,表示与此 UIElement3D 关联的 UIElement3DAutomationPeer

注解

可以将名称属性视为用户用来解释他们引用的控件。 请务必为图形用户界面中的所有控件提供文本表示形式 (GUI) ,以便你可以以本地化的方式以编程方式引用控件。

此方法调用 AutomationProperties.GetName 该方法以获取值。 AutomationProperties.GetName 仅当设置属性时 AutomationProperties.Name ,才返回一个值。 可以重写 GetNameCore 和添加逻辑,以某种方式提供对你有意义的 UIElement3D名称。

UIElement3DAutomationPeer在 .NET Framework 版本 3.5 中引入。 有关详细信息,请参见版本和依赖关系

适用于