Språk

AutomationElement.RuntimeIdProperty Fält

Definition

Identifierar egenskapen som innehåller körningsidentifieraren för elementet.

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 

Fältvärde

Exempel

I följande exempel hämtas det aktuella värdet för egenskapen.

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

Kommentarer

Den här identifieraren används av UI Automation klientprogram. UI Automation providers bör använda motsvarande identifierare i AutomationElementIdentifiers.

Körnings-ID-egenskapen anger ett ID för ett AutomationElement som är unikt på skrivbordet.

Returvärdet för egenskapen är en matris av typen Int32. Det finns inget standardvärde.

Gäller för

Se även