SPItemEventProperties.SetDoNotTrimVersions method

SharePoint 2013

Sets the item event property to disable version trimming.

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

public void SetDoNotTrimVersions()

This operation applies only to the ItemUpdating event and will otherwise throw an InvalidOperationException exception.

Show: