Method Rename | Terminal.Gui v2 (original) (raw)

Namespace

Terminal.Gui

Assembly

Terminal.Gui.dll

Rename(IFileSystem, IFileSystemInfo)

Specifies how to handle file/directory rename attempts in FileDialog.

IFileSystemInfo Rename(IFileSystem fileSystem, IFileSystemInfo toRename)

Parameters

fileSystem IFileSystem

toRename IFileSystemInfo

Returns

IFileSystemInfo

The new name for the file or null if cancelled

Remarks

Ensure you use a try/catch block with appropriate error handling (e.g. showing a MessageBox

Edit this page