AquaLogic Interaction Development Kit (IDK) 6.0.0 |

# IPortalSearchRequest.SetAdminFoldersToSearch Method

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

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

#### Parameters

folders
  An array of admin folder ids.
includeSubfolders
  whether to search subfolders.

#### Remarks

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

#### Exceptions

Exception Type | Condition
--- | ---
InvalidOperationException | includeSubfolders is set differently for doc and admin folders.
ArgumentException | One or more of the folder IDs are negative.

#### See Also

IPortalSearchRequest Interface | Plumtree.Remote.PRC.Search Namespace