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)
XML Namespace:  http://schemas.microsoft.com/winfx/2006/xaml/presentation

public string ProgrammaticName { get; }
/** @property */
public String get_ProgrammaticName ()

public function get ProgrammaticName () : String

Not applicable.

Property Value

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 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0
Show: