Creates a new folder using the provided folder path.

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

Syntax

C#
public virtual IFolderInfo AddFolder(
	FolderMappingInfo folderMapping,
	string folderPath
)
Visual Basic
Public Overridable Function AddFolder ( 
	folderMapping As FolderMappingInfo,
	folderPath As String
) As IFolderInfo

Parameters

folderMapping
Type: DotNetNuke.Services.FileSystem..::..FolderMappingInfo
The folder mapping to use.
folderPath
Type: System..::..String
The path of the new folder.

Return Value

The added folder.

Implements

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

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptionThrown when folderPath or folderMapping are null.
DotNetNuke.Services.FileSystem..::..FolderProviderExceptionThrown when the underlying system throw an exception.

See Also