Exago .NET API Documentation
NewFolder Method
Example 
WebReports.Api.Roles Namespace > FolderCollection Class : NewFolder Method
Create and return a new Folder object and add it to the collection. The new Folder object is created with the default Folder constructor. The Name Property of the Folder object should be set right away to make it meaningful.
Syntax
public Folder NewFolder()
Example
Restrict access to all folders except for the My Reports folder with a Role, then save it to the configuration file.
Role myRole = api.Roles.GetRole("ReportUser");
myRole.Security.Folders.IncludeAll = false;

Folder f = myRole.Security.Folders.NewFolder();
f.Name = "My Reports";
			
api.SaveConfigToFile();
See Also

Reference

FolderCollection Class
FolderCollection Members