Creates a new folder in the given portal using the provided folder path. The same mapping than the parent folder will be used to create this folder. So this method have to be used only to create subfolders.

Namespace: DotNetNuke.Services.FileSystem
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
public virtual IFolderInfo AddFolder(
	int portalId,
	string folderPath
)
Visual Basic
Public Overridable Function AddFolder ( 
	portalId As Integer,
	folderPath As String
) As IFolderInfo

Parameters

portalId
Type: System..::..Int32
The portal identifier.
folderPath
Type: System..::..String
The path of the new folder.

Return Value

The added folder.

Implements

IFolderManager..::..AddFolder(Int32, String)

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptionThrown when folderPath is null or empty.

See Also