AquaLogic Interaction Development Kit (IDK) 6.0.0 |

# IPortalSearchRequest.SetObjectTypesToSearch Method

Restricts the search to the specified `ObjectClass`(es).

void SetObjectTypesToSearch(
ObjectClass[] classes
);

#### Parameters

classes
  An array of `ObjectClass`es to search.

#### Remarks

If this method is not called, all supported `ObjectClass`(es) will be searched. Supported `ObjectClass`es are Documents, Doc Folders, Users, UserGroups and Communities.

#### Exceptions

Exception Type | Condition
--- | ---
ArgumentException | One or more unsupported `ObjectClasse`s are included.

#### See Also

IPortalSearchRequest Interface | Plumtree.Remote.PRC.Search Namespace