EventReceiverUtility.RunAndHandleVersionConflicts 方法 (String, SPItemEventProperties, EventReceiverUtility.ItemEventReceiverCodeToRun)
运行代码并管理版本冲突。
命名空间: Microsoft.Office.Server.Utilities
程序集: Microsoft.Office.Server(位于 Microsoft.Office.Server.dll 中)
语法
声明
Public Shared Function RunAndHandleVersionConflicts ( _
eventReceiverName As String, _
properties As SPItemEventProperties, _
codeToRun As EventReceiverUtility.ItemEventReceiverCodeToRun _
) As Boolean
用法
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
)
参数
eventReceiverName
类型:System.String事件接收器的名称。
properties
类型:Microsoft.SharePoint.SPItemEventPropertiesSPItemEventProperties.
codeToRun
类型:Microsoft.Office.Server.Utilities.EventReceiverUtility.ItemEventReceiverCodeToRun要运行的代码由事件接收器。
返回值
类型:System.Boolean
返回 Boolean。