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.
public ContentMetadata AddFolder( System.string parentName, System.string name )
Exception | Description |
---|---|
System.NullReferenceException | System.NullReferenceException will be thrown if a folder with the same name already exists in the parent, or if the parent does not exist. |
api.ReportManagement.AddFolder(null, "Sales Reports");
api.ReportManagement.AddFolder("Sales Reports", "Q1"); api.ReportManagement.AddFolder("Sales Reports", "Q2"); api.ReportManagement.AddFolder("Sales Reports", "Q3"); api.ReportManagement.AddFolder("Sales Reports", "Q4");