Plumtree EDK (Enterprise Web Development Kit) 5.4.0 |

# IPortalSearchRequest.SetDocFoldersToSearch Method

Restricts the set of doc folders searched to the specified doc folders.

void SetDocFoldersToSearch(
int[] folders,
bool includeSubfolders
);

#### Parameters

folders
  array of doc folder ids
includeSubfolders
  whether to search subfolders

#### Remarks

This method does not restrict the set of admin folders searched. If this method is not called, all doc folders will be searched.

#### Exceptions

Exception Type | Condition
--- | ---
InvalidOperationException | if includeSubfolders is set differently for doc vs admin folders
ArgumentException | if any of the folder IDs are negative

#### See Also

IPortalSearchRequest Interface | Plumtree.Remote.PRC.Search Namespace