A Sandcastle Documented Class Library

# 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 (10.0.0.1002)
Syntax
C#
VB
C++
F#
Copy

    void RenameEntry(
    	Guid entryId,
    	string newName
    )

    Sub RenameEntry (
    	entryId As Guid,
    	newName As String
    )

    void RenameEntry(
    	Guid entryId,
    	String^ newName
    )

    abstract RenameEntry :
            entryId : Guid *
            newName : string -> unit

#### Parameters

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

Exceptions

Exception | Condition
--- | ---
ArgumentException | entryId is Empty. -or- newName is , empty, only consists of whitespace, or contains invalid characters.
ArgumentOutOfRangeException | newName is longer than MaxNameLength.
NotFoundException | The entry specified by entryId does not exist.
DuplicateItemException | An 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.
NoPrivilegeException | The caller does not have permission to rename the file.
InvalidSessionException | The 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

#### Reference

IFileSystemService Interface
Dundas.BI.FileSystem Namespace