Exago .NET API Documentation
AddFolder Method
Example 
WebReports.Api.ReportMgmt Namespace > ReportMgmtBase Class : AddFolder Method
The name of the parent folder for this new folder. Pass null to create the new folder in the root directory.
The name of the new folder.
Add a new folder to the Report Tree. Folder is created permanently in the Storage Management database.
Syntax
public ContentMetadata AddFolder( 
   System.string parentName,
   System.string name
)

Parameters

parentName
The name of the parent folder for this new folder. Pass null to create the new folder in the root directory.
name
The name of the new folder.
Exceptions
ExceptionDescription
System.NullReferenceException will be thrown if a folder with the same name already exists in the parent, or if the parent does not exist.
Example
Create a new folder named "Sales Reports" in the root directory.
api.ReportManagement.AddFolder(null, "Sales Reports");
Create sub-folders for each quarter in the Sales Reports folder.
api.ReportManagement.AddFolder("Sales Reports", "Q1");
api.ReportManagement.AddFolder("Sales Reports", "Q2");
api.ReportManagement.AddFolder("Sales Reports", "Q3");
api.ReportManagement.AddFolder("Sales Reports", "Q4");
See Also

Reference

ReportMgmtBase Class
ReportMgmtBase Members