Method Rename
Rename(IFileSystem, IFileSystemInfo)
Specifies how to handle file/directory rename attempts in FileDialog.
public IFileSystemInfo Rename(IFileSystem fileSystem, IFileSystemInfo toRename)
Parameters
fileSystem
IFileSystemtoRename
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