IFileOperationMoveItem Method

Declares a single item that is to be moved to a specified destination.

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 MoveItem(
	IShellItem psiItem,
	IShellItem psiDestinationFolder,
	string pszNewName,
	IFileOperationProgressSink pfopsItem
)

Parameters

psiItem  IShellItem
Pointer to an IShellItem that specifies the source item.
psiDestinationFolder  IShellItem
Pointer to an IShellItem that specifies the destination folder to contain the moved item.
pszNewName  String
Pointer to a new name for the item in its new location.

This is a null-terminated Unicode string and can be NULL.

If NULL, the name of the destination item is the same as the source.

pfopsItem  IFileOperationProgressSink
Pointer to an IFileOperationProgressSink object to be used for progress status and error notifications for this specific move operation.

If you call Advise(IFileOperationProgressSink, UInt32) for the overall operation, progress status and error notifications for the move 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