Open this page in the API Guide

IFileSystemService.RenameEntry Method

Renames the entry with the specified ID.

Namespace:  Dundas.BI.FileSystem
Assembly:  Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (25.1.0.1000)
Syntax
void RenameEntry(
	Guid entryId,
	string newName
)

Parameters

entryId
Type: System.Guid
The ID of the entry.
newName
Type: System.String
The new name of the entry.
Exceptions
ExceptionCondition
ArgumentException

entryId is Empty.

-or-

newName is null, empty, only consists of whitespace, or contains invalid characters.

ArgumentOutOfRangeExceptionnewName is longer than MaxNameLength.
NotFoundExceptionThe entry specified by entryId does not exist.
DuplicateItemExceptionAn entry with the specified new name already exists in the parent.
InvalidOperationException

entryId corresponds to a type of entry which may not be renamed.

-or-

entryId is recycled and cannot be renamed.

NoPrivilegeExceptionThe caller does not have permission to rename the file.
InvalidSessionExceptionThe caller context is not associated with a valid session.
Remarks
If a transient entry is being renamed, and it's not a subentry, the entry will no longer be transient after being renamed.
See Also