This documentation is archived and is not being maintained.

AutomationIdentifier.ProgrammaticName Property

Gets the registered programmatic name.

Namespace:  System.Windows.Automation
Assembly:  UIAutomationTypes (in UIAutomationTypes.dll)

public string ProgrammaticName { get; }

Property Value

Type: System.String
The programmatic name.

ProgrammaticName is intended for debugging and diagnostic purposes only. The string is not localized.

This property should not be used in string comparisons. To determine if two properties are the same, compare the property identifiers directly.

The following example displays the programmatic name of each property supported by an AutomationElement.

AutomationProperty[] properties = element.GetSupportedProperties();
foreach (AutomationProperty prop in properties)
{
    Console.WriteLine(prop.ProgrammaticName);
    Console.WriteLine(Automation.PropertyName(prop));
}

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0
Show: