Share via


UpdateConflictsHandler-Methode

Optionale Methode, die die benutzerdefinierte Geschäftslogik implementiert, die aufgerufen wird, wenn beim Verleger und beim Abonnenten konfliktverursachende UPDATE-Anweisungen auftreten.

Namespace:  Microsoft.SqlServer.Replication.BusinessLogicSupport
Assembly:  Microsoft.SqlServer.Replication.BusinessLogicSupport (in Microsoft.SqlServer.Replication.BusinessLogicSupport.dll)

Syntax

'Declaration
Public Overridable Function UpdateConflictsHandler ( _
    publisherDataSet As DataSet, _
    subscriberDataSet As DataSet, _
    ByRef customDataSet As DataSet, _
    ByRef conflictLogType As ConflictLogType, _
    ByRef customConflictMessage As String, _
    ByRef historyLogLevel As Integer, _
    ByRef historyLogMessage As String _
) As ActionOnUpdateConflict
'Usage
Dim instance As BusinessLogicModule
Dim publisherDataSet As DataSet
Dim subscriberDataSet As DataSet
Dim customDataSet As DataSet
Dim conflictLogType As ConflictLogType
Dim customConflictMessage As String
Dim historyLogLevel As Integer
Dim historyLogMessage As String
Dim returnValue As ActionOnUpdateConflict

returnValue = instance.UpdateConflictsHandler(publisherDataSet, _
    subscriberDataSet, customDataSet, _
    conflictLogType, customConflictMessage, _
    historyLogLevel, historyLogMessage)
public virtual ActionOnUpdateConflict UpdateConflictsHandler(
    DataSet publisherDataSet,
    DataSet subscriberDataSet,
    ref DataSet customDataSet,
    ref ConflictLogType conflictLogType,
    ref string customConflictMessage,
    ref int historyLogLevel,
    ref string historyLogMessage
)
public:
virtual ActionOnUpdateConflict UpdateConflictsHandler(
    DataSet^ publisherDataSet, 
    DataSet^ subscriberDataSet, 
    DataSet^% customDataSet, 
    ConflictLogType% conflictLogType, 
    String^% customConflictMessage, 
    int% historyLogLevel, 
    String^% historyLogMessage
)
abstract UpdateConflictsHandler : 
        publisherDataSet:DataSet * 
        subscriberDataSet:DataSet * 
        customDataSet:DataSet byref * 
        conflictLogType:ConflictLogType byref * 
        customConflictMessage:string byref * 
        historyLogLevel:int byref * 
        historyLogMessage:string byref -> ActionOnUpdateConflict 
override UpdateConflictsHandler : 
        publisherDataSet:DataSet * 
        subscriberDataSet:DataSet * 
        customDataSet:DataSet byref * 
        conflictLogType:ConflictLogType byref * 
        customConflictMessage:string byref * 
        historyLogLevel:int byref * 
        historyLogMessage:string byref -> ActionOnUpdateConflict 
public function UpdateConflictsHandler(
    publisherDataSet : DataSet, 
    subscriberDataSet : DataSet, 
    customDataSet : DataSet, 
    conflictLogType : ConflictLogType, 
    customConflictMessage : String, 
    historyLogLevel : int, 
    historyLogMessage : String
) : ActionOnUpdateConflict

Parameter

  • customConflictMessage
    Typ: System. . :: . .String%
    Konfliktmeldung, die vom benutzerdefinierten Geschäftslogikhandler zurückgegeben wird.
  • historyLogLevel
    Typ: System. . :: . .Int32%
    Protokollebene der benutzerdefinierten Meldung, die vom benutzerdefinierten Geschäftslogikhandler zurückgegeben wird.
  • historyLogMessage
    Typ: System. . :: . .String%
    Protokollmeldung, die vom benutzerdefinierten Geschäftslogikhandler bereitgestellt wird. Die Protokollmeldung wird in die Verteilungsdatenbank geschrieben.

Rückgabewert

Typ: Microsoft.SqlServer.Replication.BusinessLogicSupport. . :: . .ActionOnUpdateConflict
Die ActionOnUpdateConflict-Aktion, die vom Prozess ausgeführt wird, nachdem der benutzerdefinierte Geschäftslogikhandler ausgeführt wurde.