AquaLogic Interaction Development Kit (IDK) 6.0.0 |

# IDocumentManager.CreateNewFolder Method

Creates and returns a new `IDocumentFolder` instance.

IDocumentFolder CreateNewFolder(
string name,
string description
);

#### Parameters

name
  The name of the document folder.
description
  The description of the document folder.

#### Return Value

A new `IDocumentFolder` instance.

#### Remarks

After setting some of the fields on the newly created object, the method `InsertNewFolder` needs to be called to persist the newly created document folder.

The following sample code demonstrates how to create and store a new document folder.

    //Create the folder
    IDocumentFolder newFolder = documentManager.CreateNewFolder("my new folder", "this is a test folder");
    //Could now set optional properties such as security on newFolder before store...
    //Get the top level folder of the project to insert the document into
    IDocumentFolder topLevelFolder = documentManager.GetTopLevelFolder(containingProject);
    //Insert the folder, inheriting the top level folder's security
    IDocumentFolder storedFolder = documentManager.InsertNewFolder(topLevelFolder, newFolder, true);

#### See Also

IDocumentManager Interface | Plumtree.Remote.PRC.Collaboration.Document Namespace