AutomationElement.RuntimeIdProperty フィールド

定義

要素のランタイム識別子を含むプロパティを識別します。

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())

注釈

この識別子は、クライアント アプリケーションUI オートメーション使用されます。 UI オートメーションプロバイダーは、AutomationElementIdentifiers で同等の識別子を使用する必要があります。

ランタイム ID プロパティは、デスクトップで一意の AutomationElement の ID を指定します。

プロパティの戻り値は、 Int32型の配列です。 既定値はありません。

適用対象

こちらもご覧ください