ShellBrowser Delphi Components Documentation
ContentsIndexHome
PreviousUpNext
Jam.Shell.Types.IItemIdList.Rename

Renames the file system object represented by this instance.

Syntax
Pascal
procedure Rename(pNewName: string; pWindowHandle: THandle = 0; const pUpdatePidl: Boolean = true);
Parameters 
Description 
pNewName: string 
The new name for the element. No path, only a name. For files, names should include the file-extension. 
pWindowHandle: THandle = 0 
A handle that is used to display information to the user (e.g. a confirmation dialog). 
const pUpdatePidl: Boolean = true 
True (default), if this instance should be updated to the new, renamed value; false if it should be left untouched. 
Exceptions 
Description 
If an error occurred while performing the operation.