IGPMDomain::SearchSOMs method (gpmgmt.h)
Executes a search for GPMSOM objects (domains and organizational units) in the domain and then returns a GPMSOMCollection object.
Syntax
HRESULT SearchSOMs(
[in] IGPMSearchCriteria *pIGPMSearchCriteria,
[out] IGPMSOMCollection **ppIGPMSOMCollection
);
Parameters
[in] pIGPMSearchCriteria
GPMSearchCriteria object to apply to the search.
[out] ppIGPMSOMCollection
Address of a pointer to the IGPMSOMCollection interface that represents the scopes of management (SOMs) found by the search.
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.Remarks
This method does not allow you to search for site SOMs. Call the IGPMSitesContainer::SearchSites method to perform this type of search.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista |
Minimum supported server | Windows Server 2008 |
Target Platform | Windows |
Header | gpmgmt.h |
DLL | Gpmgmt.dll |