此 API 支持 SQL Server 2012 基础结构,但不能通过代码直接使用。
Invokes a handler when UPDATE statements conflict with DELETE statements at the source and at the destination.
命名空间: Microsoft.SqlServer.Replication.BusinessLogicSupport
程序集: Microsoft.SqlServer.Replication.BusinessLogicSupport(在 Microsoft.SqlServer.Replication.BusinessLogicSupport.dll 中)
语法
声明
Public MustOverride Function InvokeUpdateDeleteConflictHandler ( _
currentChangeState As ChangeStates, _
methodName As String, _
sourceIdentifier As SourceIdentifier, _
sourceDataSet As DataSet, _
destinationDataSet As DataSet, _
ByRef customDataSet As DataSet, _
downloadPhase As Boolean, _
ByRef logConflictType As ConflictLogType, _
ByRef conflictLogMessage As String, _
ByRef logLevel As Integer, _
ByRef logMessage As String _
) As ActionOnUpdateDeleteConflict
用法
Dim instance As IBusinessLogicResolver
Dim currentChangeState As ChangeStates
Dim methodName As String
Dim sourceIdentifier As SourceIdentifier
Dim sourceDataSet As DataSet
Dim destinationDataSet As DataSet
Dim customDataSet As DataSet
Dim downloadPhase As Boolean
Dim logConflictType As ConflictLogType
Dim conflictLogMessage As String
Dim logLevel As Integer
Dim logMessage As String
Dim returnValue As ActionOnUpdateDeleteConflict
returnValue = instance.InvokeUpdateDeleteConflictHandler(currentChangeState, _
methodName, sourceIdentifier, sourceDataSet, _
destinationDataSet, customDataSet, _
downloadPhase, logConflictType, _
conflictLogMessage, logLevel, logMessage)
public abstract ActionOnUpdateDeleteConflict InvokeUpdateDeleteConflictHandler(
ChangeStates currentChangeState,
string methodName,
SourceIdentifier sourceIdentifier,
DataSet sourceDataSet,
DataSet destinationDataSet,
ref DataSet customDataSet,
bool downloadPhase,
ref ConflictLogType logConflictType,
ref string conflictLogMessage,
ref int logLevel,
ref string logMessage
)
public:
virtual ActionOnUpdateDeleteConflict InvokeUpdateDeleteConflictHandler(
ChangeStates currentChangeState,
String^ methodName,
SourceIdentifier sourceIdentifier,
DataSet^ sourceDataSet,
DataSet^ destinationDataSet,
DataSet^% customDataSet,
bool downloadPhase,
ConflictLogType% logConflictType,
String^% conflictLogMessage,
int% logLevel,
String^% logMessage
) abstract
abstract InvokeUpdateDeleteConflictHandler :
currentChangeState:ChangeStates *
methodName:string *
sourceIdentifier:SourceIdentifier *
sourceDataSet:DataSet *
destinationDataSet:DataSet *
customDataSet:DataSet byref *
downloadPhase:bool *
logConflictType:ConflictLogType byref *
conflictLogMessage:string byref *
logLevel:int byref *
logMessage:string byref -> ActionOnUpdateDeleteConflict
public abstract function InvokeUpdateDeleteConflictHandler(
currentChangeState : ChangeStates,
methodName : String,
sourceIdentifier : SourceIdentifier,
sourceDataSet : DataSet,
destinationDataSet : DataSet,
customDataSet : DataSet,
downloadPhase : boolean,
logConflictType : ConflictLogType,
conflictLogMessage : String,
logLevel : int,
logMessage : String
) : ActionOnUpdateDeleteConflict
参数
- currentChangeState
类型:Microsoft.SqlServer.Replication.BusinessLogicSupport.ChangeStates
Current change state.
- methodName
类型:System.String
The method name.
- sourceIdentifier
类型:Microsoft.SqlServer.Replication.BusinessLogicSupport.SourceIdentifier
The source identifier.
- sourceDataSet
类型:System.Data.DataSet
The source data set.
- destinationDataSet
类型:System.Data.DataSet
The destination data set.
- customDataSet
类型:System.Data.DataSet%
Data set implemented by the custom business logic.
- downloadPhase
类型:System.Boolean
Specifies whether the phase about to begin is an upload or download.
- logConflictType
类型:Microsoft.SqlServer.Replication.BusinessLogicSupport.ConflictLogType%
The log conflict type.
- conflictLogMessage
类型:System.String%
The conflict log message.
- logLevel
类型:System.Int32%
The log level
- logMessage
类型:System.String%
The log message.
返回值
类型:Microsoft.SqlServer.Replication.BusinessLogicSupport.ActionOnUpdateDeleteConflict
The ActionOnUpdateDeleteConflict action that will be taken by the process after the custom business logic handler has executed.