Share via


IXRCollection<In_T, Out_T>::Contains (Windows Embedded CE 6.0)

1/6/2010

This method determines whether an item is in this collection.

Syntax

virtual bool    STDMETHODCALLTYPE   Contains(
    In_T pvalue
) = 0;

Parameters

  • pvalue
    [in] A value that represents the item to locate in this collection.

    In inherited classes, the type of this item corresponds to the specific collection type that inherits from this template class.

Return Value

Returns true if pvalue is found in this 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 IXRCollection<In_T, Out_T>::GetCount.

.NET Framework Equivalent

System.Windows.PresentationFrameworkCollection(T).Contains

Requirements

Header XamlRuntime.h
sysgen SYSGEN_XAML_RUNTIME
Windows Embedded CE Windows Embedded CE 6.0 R3

See Also

Reference

IXRCollection<In_T, Out_T>