IFilterCollection::Add method

Adds an item to the collection.

Syntax

HRESULT Add(
  [in] FilterOperator operator,
  [in] PropId         propertyId,
  [in] VARIANT        value
);

Parameters

  • operator [in]
    The operator to use when comparing the specified value to the object's property value. For a list of possible operators, see the FilterOperator enumeration.

  • propertyId [in]
    An identifier that uniquely identifies the property whose value you want to compare. For possible values, see the PropId enumeration.

  • value [in]
    The value to use in the comparison.

Return value

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

Examples

For an example, see Filtering and Sorting Lists of Objects.

Requirements

Product

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

Type library

Microsoft.Hpc.Scheduler.tlb

See also

IFilterCollection