Udostępnij za pośrednictwem


Metoda BusinessLogicModule.UpdateConflictsHandler

Opcjonalne metodę, która implementuje niestandardowe logika biznesowa wywoływana, gdy występują konflikty instrukcji UPDATE w Wydawca i przez subskrybenta.

Przestrzeń nazw:  Microsoft.SqlServer.Replication.BusinessLogicSupport
Zestaw:  Microsoft.SqlServer.Replication.BusinessLogicSupport (w Microsoft.SqlServer.Replication.BusinessLogicSupport.dll)

Składnia

'Deklaracja
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
'Użycie
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

Parametry

  • subscriberDataSet
    Typ: System.Data.DataSet
    Element DataSet reprezentująca dane subskrybenta.
  • customDataSet
    Typ: System.Data.DataSet%
    Element DataSet implementowane przez niestandardowe logika biznesowa.
  • customConflictMessage
    Typ: System.String%
    Komunikat o konflikcie zwracane przez niestandardowe obsługa logika biznesowa.
  • historyLogLevel
    Typ: System.Int32%
    Poziom niestandardowy komunikat zwrócony przez niestandardowe dziennika obsługa logika biznesowa.
  • historyLogMessage
    Typ: System.String%
    Dostarczony przez niestandardowy komunikat dziennika obsługa logika biznesowa.Zapisywany pobiera komunikat dziennika baza danych dystrybucji.

Wartość zwracana

Typ: Microsoft.SqlServer.Replication.BusinessLogicSupport.ActionOnUpdateConflict
ActionOnUpdateConflict Akcję podejmowaną po niestandardowej przez proces obsługa logika biznesowa wykonał.