Share via


AutomationInteropProvider.AppendRuntimeId Pole

Definice

Obsahuje hodnotu, která po vrácení jako první prvek pole předaného zprostředkovatelem model UI Automation do GetRuntimeId(), označuje, že ID je částečné a mělo by být připojeno k ID poskytnutému základním zprostředkovatelem.

public: int AppendRuntimeId = 3;
public const int AppendRuntimeId = 3;
val mutable AppendRuntimeId : int
Public Const AppendRuntimeId As Integer  = 3

Hodnota pole

Value = 3

Příklady

Následující příklad představuje implementaci IRawElementProviderFragment.GetRuntimeId pro položku seznamu.

/// <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

Poznámky

Toto pole se obvykle používá v implementaci GetRuntimeId pro prvky ve fragmentu, které nejsou přímo hostovány v okně.

Platí pro