IFileOperationRenameItem Method

Declares a single item that is to be given a new display name.

Definition

Namespace: DevCase.Win32.Interfaces
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
HResult RenameItem(
	IShellItem psiItem,
	string pszNewName,
	IFileOperationProgressSink pfopsItem
)

Parameters

psiItem  IShellItem
Pointer to an IShellItem that specifies the source item.
pszNewName  String
Pointer to the new display name of the item. This is a null-terminated, Unicode string.
pfopsItem  IFileOperationProgressSink
Pointer to an IFileOperationProgressSink object to be used for status and failure notifications.

If you call Advise(IFileOperationProgressSink, UInt32) for the overall operation, progress status and error notifications for the rename operation are included there, so set this parameter to NULL.

Return Value

HResult
If this method succeeds, it returns S_OK. Otherwise, it returns an HResult error code.

See Also