Plumtree EDK (Enterprise Web Development Kit) 5.4.0 |

# IPortalSearchRequest.SetObjectTypesToSearch Method

Restricts the search to the specified `ObjectClasse`s.

void SetObjectTypesToSearch(
ObjectClass[] classes
);

#### Parameters

classes
  array of `ObjectClass`es to search

#### Remarks

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

#### Exceptions

Exception Type | Condition
--- | ---
ArgumentException | if unsupported `ObjectClasse`s are included

#### See Also

IPortalSearchRequest Interface | Plumtree.Remote.PRC.Search Namespace