SPItemEventProperties.SetDoNotTrimVersions method
Sets the item event property to disable version trimming.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Sub SetDoNotTrimVersions
'Usage
Dim instance As SPItemEventProperties
instance.SetDoNotTrimVersions()
public void SetDoNotTrimVersions()
Remarks
This operation applies only to the ItemUpdating event and will otherwise throw an InvalidOperationException exception.