Compartir a través de


XRValueCollectionT.Contains(const ItemType&,bool *) (Compact 2013)

3/28/2014

This method determines whether an item of type ItemType is in the collection.

Syntax

HRESULT Contains(
const ItemType & Value,
bool * pResult)

Parameters

  • Value
    [in] A pointer to the item of type ItemType to locate in the collection.
  • pResult
    [out] A Boolean value that is true if the item is at an indexed position in the collection; otherwise, pResult is false.

Return Value

The following table shows the possible return values.

Value

Description

S_OK

The method was successful.

E_FAIL

The method was unsuccessful.

E_POINTER

Either the Value or pResult parameter is not valid.

Remarks

ItemType is defined in the ItemType template parameter of the XRValueCollectionT<IFace,ItemType> class.

Requirements

Header

XRCollection.h

See Also

Reference

XRValueCollectionT<IFace,ItemType>