Compartilhar via


AutomationInteropProvider.AppendRuntimeId Campo

Definição

Contém um valor que, quando retornado como o primeiro elemento da matriz passada pelo provedor de Automação da Interface do Usuário para GetRuntimeId(), indica que a ID é parcial e deve ser acrescentada à ID fornecida pelo provedor de base.

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

Valor do campo

Value = 3

Exemplos

O exemplo a seguir é uma implementação de para um item de IRawElementProviderFragment.GetRuntimeId lista.

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

Comentários

Normalmente, esse campo é usado na implementação de GetRuntimeId para elementos em um fragmento que não estão hospedados diretamente em uma janela.

Aplica-se a