Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.
- properties
Type: Microsoft.SharePoint.SPItemEventProperties
SPItemEventProperties.
- codeToRun
Type: Microsoft.Office.Server.Utilities.EventReceiverUtility.ItemEventReceiverCodeToRun
The code to run as determined by the event receiver.
Return Value
Type: System.Boolean
Returns Boolean.