Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
SDK Documentation
 ItemFileMoved Method
Community Content
In this section
Statistics Annotations (1)
Collapse All/Expand All Collapse All
This page is specific to
The 2007 product release

Other versions are also available for the following:
SPItemEventReceiver.ItemFileMoved Method (Microsoft.SharePoint)
Occurs after a file is moved.

Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in microsoft.sharepoint.dll)
Visual Basic (Declaration)
Public Overridable Sub ItemFileMoved ( _
    properties As SPItemEventProperties _
)
Visual Basic (Usage)
Dim instance As SPItemEventReceiver
Dim properties As SPItemEventProperties

instance.ItemFileMoved(properties)
C#
public virtual void ItemFileMoved (
    SPItemEventProperties properties
)

Parameters

properties

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

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Bug      Martin Winzig ... Thomas Lee   |   Edit   |   Show History

ItemFileMoved is post event so the operation should not be blocked by code executed in this thread. But Is.

sample:

public override void ItemFileMoved(SPItemEventProperties properties)
{

System.Threading.Thread.Sleep(20000);
base.ItemFileMoved(properties);

}

When you create following event handler you can see that move operation take 20s.

Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker