IGPMSitesContainer::SearchSites method

Retrieves a collection of scope of management (SOM) objects based on the specified search criteria. This method returns only site objects.

Syntax

HRESULT SearchSites(
  IGPMSearchCriteria *pIGPMSearchCriteria,
  IGPMSOMCollection  **ppIGPMSOMCollection
);

Parameters

pIGPMSearchCriteria

Pointer to criteria to supply to the search. Valid criteria for the search include the following.

Pointer to an IDispatch or an IUnknown interface to query the IGPMGPO interface. For script programmers, this is a reference to a GPMGPO object. Valid criteria includes the opContains search operator.

ppIGPMSOMCollection

Address of a pointer to the IGPMSOMCollection interface.

Return Value

C++

Returns S_OK if successful. Returns a failure code if an error occurs.

JScript

Returns a reference to a GPMSOMCollection object.

VB

Returns a reference to a GPMSOMCollection object.

Requirements

   
Windows version Windows Vista Windows Server 2008
Target Platform Windows
Header gpmgmt.h
DLL Gpmgmt.dll

See Also

IGPMSOMCollection

IGPMSearchCriteria

IGPMSitesContainer