Renames the specified folder by setting the new provided folder name.
Namespace: DotNetNuke.Services.FileSystemAssembly: DotNetNuke (in DotNetNuke.dll)
Syntax
| C# |
|---|
public virtual void RenameFolder( IFolderInfo folder, string newFolderName ) |
| Visual Basic |
|---|
Public Overridable Sub RenameFolder ( folder As IFolderInfo, newFolderName As String ) |
Parameters
- folder
- Type: DotNetNuke.Services.FileSystem..::..IFolderInfo
The folder to rename.
- newFolderName
- Type: System..::..String
The new name to apply to the folder.
Implements
IFolderManager..::..RenameFolder(IFolderInfo, String)
Exceptions
| Exception | Condition |
|---|---|
| System..::..ArgumentException | Thrown when newFolderName is null or empty. |
| System..::..ArgumentNullException | Thrown when folder is null. |
| DotNetNuke.Services.FileSystem..::..FolderProviderException | Thrown when the underlying system throw an exception. |