SPItemEventReceiver.ItemFileMoved method

Handles the asynchronous event that occurs after a file is renamed; that is "moved" within a document library.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

'Declaration
Public Overridable Sub ItemFileMoved ( _
	properties As SPItemEventProperties _
)
'Usage
Dim instance As SPItemEventReceiver
Dim properties As SPItemEventProperties

instance.ItemFileMoved(properties)

Parameters

properties
Type: Microsoft.SharePoint.SPItemEventProperties

The properties of the event handler.

ExceptionCondition
ArgumentNullException

properties is null .

NoteNote

This method is misnamed. It does not handle a file movement across document libraries, regardless of whether the movement is done programmatically or through the SharePoint user interface.

Before and After properties are guaranteed for postback events on documents, but Before properties are not available for postback events on list items.

Show: