SPEventExecutionScope.CreateEventExecutionFiringScope method

Creates a scope that supports disabling or enabling event firing.

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

Syntax

'Declaration
Public Shared Function CreateEventExecutionFiringScope ( _
    eventFiringEnabled As Boolean _
) As IDisposable
'Usage
Dim eventFiringEnabled As Boolean
Dim returnValue As IDisposable

returnValue = SPEventExecutionScope.CreateEventExecutionFiringScope(eventFiringEnabled)
public static IDisposable CreateEventExecutionFiringScope(
    bool eventFiringEnabled
)

Parameters

  • eventFiringEnabled
    Type: System.Boolean

    Indicates whether event firing is enabled. This parameter is true if event firing is enabled or false if event firing is disabled.

Return value

Type: System.IDisposable
The scope.

See also

Reference

SPEventExecutionScope class

SPEventExecutionScope members

Microsoft.SharePoint namespace