Query method

The Query method selects and retrieves a subset of the ITarget instances that are contained within the ITargets collection.

Syntax

HRESULT Query(
  [in]           BSTR SDEL,
  [out, retval]  ITargets **ppTargets
);

Parameters

  • SDEL [in]
    The SDEL statement that each returned target must match. If an instance of ITarget within this collection matches this statement, the instance will be included in the returned collection.

  • ppTargets [out, retval]
    The address of the variable where the resulting collection will be returned.

Return value

Query returns a standard HRESULT value.

Remarks

The Query method provides the SDEL parameter in a call to the ITarget::Eval method for every instance of the ITarget interface in the ITargets collection, use the Simple Data Evaluation Language to specify this parameter. Every target that returns VARIANT_TRUE is added to a new instance of the ITargets collection interface.

See also

ITarget

ITarget::Eval

ITargets

 

 

Send comments about this topic to Microsoft

Build date: 1/12/2012