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

Public Property SuppressAfterEvents As Boolean
    Get
    Set

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