PropertyCondition Constructor (AutomationProperty, Object, PropertyConditionFlags)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Initializes a new instance of the PropertyCondition class, with flags.

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

new : 
        property:AutomationProperty *
        value:Object *
        flags:PropertyConditionFlags -> PropertyCondition

Parameters

property
Type: System.Windows.Automation.AutomationProperty

The property to test.

value
Type: System.Object

The value to test the property for.

flags
Type: System.Windows.Automation.PropertyConditionFlags

Flags that affect the comparison.

The following example uses a PropertyCondition to retrieve the Microsoft UI Automation element representing the main form of an application. The form is located by a case-insensitive search for its string identifier.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Return to top
Show: