SPChange.ChangeType property

Gets the type of change that has been made to the item.

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

'Declaration
Public ReadOnly Property ChangeType As SPChangeType
	Get
'Usage
Dim instance As SPChange
Dim value As SPChangeType

value = instance.ChangeType

Property value

Type: Microsoft.SharePoint.SPChangeType
An SPChangeType value that indicates the type of change, including adding, updating, deleting, or renaming changes, but also moving items away from or into lists and folders. The value Rename applies to a change in the object’s URL at the leaf node. The values MovedAway and MovedInto apply to a change in one of the branch nodes of the URL. In order to correctly record moves, the change log records the following:
Moving from or to a folder:
  • MovedAway event on the source list.

  • MovedInto event on the destination list.

Moving from or to a site:
  • MovedAway event on the source Web site.

  • MovedInto event on the destination site.

At the SPSite and SPContentDatabase scopes, only the MovedAway event is recorded.
Show: