Export (0) Print
Expand All

IItemContainerProvider.FindItemByProperty Method

.NET Framework 4.6 and 4.5

Retrieves an element by the specified property value.

Namespace:  System.Windows.Automation.Provider
Assembly:  UIAutomationProvider (in UIAutomationProvider.dll)

IRawElementProviderSimple FindItemByProperty(
	IRawElementProviderSimple startAfter,
	int propertyId,
	Object value
)

Parameters

startAfter
Type: System.Windows.Automation.Provider.IRawElementProviderSimple

The item in the container after which to begin the search.

propertyId
Type: System.Int32

The property that contains the value to retrieve.

value
Type: System.Object

The value to retrieve.

Return Value

Type: System.Windows.Automation.Provider.IRawElementProviderSimple
The first item that matches the search criterion; otherwise, null if no items match.

Set the propertyId parameter to 0 to retrieve the next item after startAfter, regardless of the value specified in value. Set startAfter to null to start the search with the first item.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft