AutomationElement.RuntimeIdProperty Campo

Definición

Identifica la propiedad que contiene el identificador en tiempo de ejecución del elemento.

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 

Valor de campo

AutomationProperty

Ejemplos

En el ejemplo siguiente se recupera el valor actual de la propiedad .

int[] runtimeIdentifier = (int[])
    autoElement.GetCurrentPropertyValue(AutomationElement.RuntimeIdProperty);
Dim runtimeIdentifier As Integer() = _
    CType(autoElement.GetCurrentPropertyValue(AutomationElement.RuntimeIdProperty), Integer())

Comentarios

Este identificador lo usan las aplicaciones cliente de Automatización de la interfaz de usuario. Automatización de la interfaz de usuario proveedores deben usar el identificador equivalente en AutomationElementIdentifiers.

La propiedad id. de tiempo de ejecución especifica un identificador para un AutomationElement que es único en el escritorio.

El valor devuelto de la propiedad es una matriz de tipo Int32. No hay ningún valor predeterminado.

Se aplica a

Consulte también