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

    事件接收器的名称。

返回值

类型:System.Boolean
返回 Boolean

另请参阅

引用

EventReceiverUtility 类

EventReceiverUtility 成员

RunAndHandleVersionConflicts 重载

Microsoft.Office.Server.Utilities 命名空间