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