PhysicalFileSystemProvider.RenameItem(FileSystemRenameItemOptions) Method

Renames a file system item (file or directory).

Namespace: DevExtreme.AspNet.Mvc.FileManagement

Assembly: DevExtreme.AspNet.Core.dll


public virtual void RenameItem(
    FileSystemRenameItemOptions options


Name Type Description
options FileSystemRenameItemOptions

Options related to the operation.


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