Export (0) Print
Expand All

SPImportSettings.SuppressAfterEvents property

Gets or sets a Boolean value that directs whether to disable the firing of After events when creating or modifying files or list items.

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

public bool SuppressAfterEvents { get; set; }

Property value

Type: System.Boolean
true if the firing of After events is disabled; otherwise, returns false.
The default value is false.

Disabling the firing and handling of After events can have a big impact on the performance of import operations. However, when performance is not a concern, you might want to disable handling After events to avoid potential problems resulting from event handlers not running their business logic.

Community Additions

ADD
Show:
© 2014 Microsoft