FrameworkElementAutomationPeer.GetAutomationIdCore 方法

定義

取得唯一識別與這個 FrameworkElementAutomationPeer 相關聯之 FrameworkElement 的字串。 由 GetAutomationId() 呼叫。

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

傳回

FrameworkElementAutomationPeer 相關聯之項目的自動化識別項,如果沒有自動化識別項,則為 Empty

備註

自動化識別碼的值是 AutomationId 屬性,如果未設定,則為 Name 屬性。

適用於

另請參閱