Export (0) Print
Expand All

AutomationElement.GetSupportedProperties Method

Retrieves the identifiers of properties supported by the element.

Namespace: System.Windows.Automation
Assembly: UIAutomationClient (in uiautomationclient.dll)

public AutomationProperty[] GetSupportedProperties ()
public AutomationProperty[] GetSupportedProperties ()
public function GetSupportedProperties () : AutomationProperty[]
Not applicable.

Return Value

An array of supported property identifiers.

The returned array identifies all the properties supported by this element; however, it can also contain duplicate entries or properties that contain a null reference (Nothing in Visual Basic) or empty values. For most purposes it is better to use GetCurrentPropertyValue to determine whether a property is currently supported and to get its current value.

The following example shows how to retrieve the properties supported by an AutomationElement.

AutomationProperty[] properties = element.GetSupportedProperties();
foreach (AutomationProperty prop in properties)

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

Community Additions

© 2015 Microsoft