AutomationElement.RuntimeIdProperty 欄位
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
識別包含該元素執行時識別碼的屬性。
public: static initonly System::Windows::Automation::AutomationProperty ^ RuntimeIdProperty;
public static readonly System.Windows.Automation.AutomationProperty RuntimeIdProperty;
staticval mutable RuntimeIdProperty : System.Windows.Automation.AutomationProperty
Public Shared ReadOnly RuntimeIdProperty As AutomationProperty
欄位值
範例
以下範例取得該屬性的當前值。
int[] runtimeIdentifier = (int[])
autoElement.GetCurrentPropertyValue(AutomationElement.RuntimeIdProperty);
Dim runtimeIdentifier As Integer() = _
CType(autoElement.GetCurrentPropertyValue(AutomationElement.RuntimeIdProperty), Integer())
備註
此識別碼用於 使用者介面自動化 客戶端應用程式。 使用者介面自動化提供者應使用等效的識別碼為 AutomationElementIdentifiers。
執行時 ID 屬性指定一個在桌面上唯一的 ID AutomationElement 。
屬性的回傳值是一個型別 Int32為 的陣列。 沒有預設值。