EventReceiverUtility.RunAndHandleVersionConflicts method (String, SPItemEventProperties, EventReceiverUtility.ItemEventReceiverCodeToRun)

Runs code and manages version conflicts.

Namespace:  Microsoft.Office.Server.Utilities
Assembly:  Microsoft.Office.Server (in Microsoft.Office.Server.dll)

Syntax

'Declaration
Public Shared Function RunAndHandleVersionConflicts ( _
    eventReceiverName As String, _
    properties As SPItemEventProperties, _
    codeToRun As EventReceiverUtility.ItemEventReceiverCodeToRun _
) As Boolean
'Usage
Dim eventReceiverName As String
Dim properties As SPItemEventProperties
Dim codeToRun As EventReceiverUtility.ItemEventReceiverCodeToRun
Dim returnValue As Boolean

returnValue = EventReceiverUtility.RunAndHandleVersionConflicts(eventReceiverName, _
    properties, codeToRun)
public static bool RunAndHandleVersionConflicts(
    string eventReceiverName,
    SPItemEventProperties properties,
    EventReceiverUtility.ItemEventReceiverCodeToRun codeToRun
)

Parameters

  • eventReceiverName
    Type: System.String

    Name of the event receiver.

Return value

Type: System.Boolean
Returns Boolean.

See also

Reference

EventReceiverUtility class

EventReceiverUtility members

RunAndHandleVersionConflicts overload

Microsoft.Office.Server.Utilities namespace