IXRItemCollection::Contains (Compact 2013)
3/28/2014
This method determines whether an item is in this collection.
Syntax
virtual bool STDMETHODCALLTYPE Contains(
__in XRValue* pValue
) = 0;
Parameters
- pValue
[in] Pointer to an XRValue object that represents the item to locate in this collection.
Return Value
Returns true if the item is found in the collection; otherwise, returns false.
Remarks
This method performs a linear search. Therefore, the average execution time is proportional to the number of items in the collection, which you can retrieve by using IXRItemCollection::GetCount.
To use a specific interface pointer type, use the helper template version of this method that XAML for Windows Embedded provides. When you supply a derived type, this version automatically supplies a type-safe method that implicitly converts the returned type from a generic interface so you do not have to explicitly call QueryInterface to convert the generic interface into the required object type.
.NET Framework Equivalent
System.Windows.PresentationFrameworkCollection(T).Contains
Requirements
Header |
XamlRuntime.h |
sysgen |
SYSGEN_XAML_RUNTIME |