Skip to main content

IFileSystemItemEditor.RenameItem(FileSystemRenameItemOptions) Method

Renames a file system item (file or directory).

Namespace: DevExtreme.AspNet.Mvc.FileManagement

Assembly: DevExtreme.AspNet.Core.dll

Declaration

void RenameItem(
    FileSystemRenameItemOptions options
)

Parameters

Name Type Description
options FileSystemRenameItemOptions

Options related to the operation.

Remarks

The following example illustrates how to overwrite the RenameItem method.

Refer to the Binding to Entity Framework ORM online demo to get the whole example code.

public void RenameItem(FileSystemRenameItemOptions options) {
    var item = options.Item;
    var fileItem = GetFileItem(item);
    fileItem.Name = options.ItemNewName;
    //...
}
See Also