ItemAutomationPeer.GetAutomationIdCore 方法

定義

取得唯一識別 UIElement 的字串,這個類別對應至與這個 Items 相關聯之 ItemAutomationPeer 集合中的資料項目。

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

傳回

String

包含消費者介面自動化識別碼的字串。

備註

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

這個方法是由 GetAutomationId 所呼叫。

適用於

另請參閱