Share via


IStringCollection::Contains method

Determines whether the collection contains the specified item.

Syntax

HRESULT Contains(
  [in]  BSTR         item,
  [out] VARIANT_BOOL *pExists
);

Parameters

  • item [in]
    The item to find.

  • pExists [out]
    Is VARIANT_TRUE if the item exists; otherwise, VARIANT_FALSE.

Return value

If the method succeeds, the return value is S_OK. Otherwise, the return value is an error code.

Requirements

Product

HPC Pack 2008 R2 Client Utilities, HPC Pack 2008 Client Utilities

Type library

Microsoft.Hpc.Scheduler.tlb

See also

IStringCollection