AutomationInteropProvider.AppendRuntimeId フィールド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
UI オートメーション プロバイダーから渡された配列の最初の要素として GetRuntimeId() に返された場合、ID が部分的であり、ベース プロバイダーによって提供される ID に追加される必要があることを示す値を格納します。
public: int AppendRuntimeId = 3;
public const int AppendRuntimeId = 3;
val mutable AppendRuntimeId : int
Public Const AppendRuntimeId As Integer = 3
フィールド値
Value = 3例
次の例は、リスト アイテムの IRawElementProviderFragment.GetRuntimeId の実装です。
/// <summary>
/// Gets the runtime identifier of the UI Automation element.
/// </summary>
/// <remarks>
/// myID is a unique identifier for the item within this instance of the list.
/// </remarks>
public int[] GetRuntimeId()
{
return new int[] { AutomationInteropProvider.AppendRuntimeId, myID };
}
''' <summary>
''' Gets the runtime identifier of the UI Automation element.
''' </summary>
''' <remarks>
''' myID is a unique identifier for the item within this instance of the list.
''' </remarks>
Public Function GetRuntimeId() As Integer() _
Implements IRawElementProviderFragment.GetRuntimeId
Return New Integer() {AutomationInteropProvider.AppendRuntimeId, myID}
End Function 'GetRuntimeId
注釈
通常、このフィールドは、ウィンドウで直接ホストされていないフラグメント内の要素に対する GetRuntimeId の実装で使用されます。