AquaLogic Interaction Development Kit (IDK) 6.0.0 |

# IFolderManager.GetSubfolders Method

Returns the immediate subfolders contained in the specified folder.

IFolder[] GetSubfolders(
IFolder folder
);

#### Parameters

folder
  The parent folder; cannot be `null`.

#### Return Value

An array of `IFolder`s which are the immediate subfolders of the specified parent folder. The returned array is not ordered.

#### Remarks

To retrieve folders or traverse the Publisher folder hierarchy, first retrieve the root folder using `GetRootFolder`, then use this method to retrieve the immediate subfolders the root folder contains and so on.

#### Exceptions

Exception Type | Condition
--- | ---
ContentException | The method call resulted in a Publisher exception.
ContentSecurityException | The user does not have permission to access the folder.
SoapException | There was a communication problem during the execution of the remote method call.
InvalidOperationException | The parent folder has been deleted or has not been stored.

#### See Also

IFolderManager Interface | Plumtree.Remote.PRC.Content.Folder Namespace