Share via


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)

Syntax

'Declaration
Public Property SuppressAfterEvents As Boolean
    Get
    Set
'Usage
Dim instance As SPImportSettings
Dim value As Boolean

value = instance.SuppressAfterEvents

instance.SuppressAfterEvents = value
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.

Remarks

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.

See also

Reference

SPImportSettings class

SPImportSettings members

Microsoft.SharePoint.Deployment namespace