Bagikan melalui


IItemContainerProvider.FindItemByProperty Metode

Definisi

Mengambil elemen berdasarkan nilai properti yang ditentukan.

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

Parameter

startAfter
IRawElementProviderSimple

Item dalam kontainer setelah itu untuk memulai pencarian.

automationProperty
AutomationProperty

Properti yang berisi nilai yang akan diambil.

value
Object

Platform::Object

IInspectable

Nilai yang akan diambil.

Mengembalikan

Item pertama yang cocok dengan kriteria pencarian; jika tidak, null.

Berlaku untuk