IItemContainerProvider.FindItemByProperty Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Retrieves an element by the specified property value.
public:
IRawElementProviderSimple ^ FindItemByProperty(IRawElementProviderSimple ^ startAfter, AutomationProperty ^ automationProperty, Platform::Object ^ value);
IRawElementProviderSimple FindItemByProperty(IRawElementProviderSimple const& startAfter, AutomationProperty const& automationProperty, IInspectable const& value);
public IRawElementProviderSimple FindItemByProperty(IRawElementProviderSimple startAfter, AutomationProperty automationProperty, object value);
function findItemByProperty(startAfter, automationProperty, value)
Public Function FindItemByProperty (startAfter As IRawElementProviderSimple, automationProperty As AutomationProperty, value As Object) As IRawElementProviderSimple
Parameters
- startAfter
- IRawElementProviderSimple
The item in the container after which to begin the search.
- automationProperty
- AutomationProperty
The property that contains the value to retrieve.
- value
-
Object
Platform::Object
IInspectable
The value to retrieve.
Returns
The first item that matches the search criterion; otherwise, null.