BusinessLogicModule.UpdateDeleteConflictHandler Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Metode opsional yang mengimplementasikan logika bisnis kustom yang dipanggil saat pernyataan UPDATE bertentangan dengan pernyataan DELETE di Penerbit dan di Pelanggan.
public:
virtual Microsoft::SqlServer::Replication::BusinessLogicSupport::ActionOnUpdateDeleteConflict UpdateDeleteConflictHandler(Microsoft::SqlServer::Replication::BusinessLogicSupport::SourceIdentifier updateSource, System::Data::DataSet ^ sourceDataSet, System::Data::DataSet ^ % customDataSet, Microsoft::SqlServer::Replication::BusinessLogicSupport::ConflictLogType % conflictLogType, System::String ^ % customConflictMessage, int % historyLogLevel, System::String ^ % historyLogMessage);
public virtual Microsoft.SqlServer.Replication.BusinessLogicSupport.ActionOnUpdateDeleteConflict UpdateDeleteConflictHandler (Microsoft.SqlServer.Replication.BusinessLogicSupport.SourceIdentifier updateSource, System.Data.DataSet sourceDataSet, ref System.Data.DataSet customDataSet, ref Microsoft.SqlServer.Replication.BusinessLogicSupport.ConflictLogType conflictLogType, ref string customConflictMessage, ref int historyLogLevel, ref string historyLogMessage);
abstract member UpdateDeleteConflictHandler : Microsoft.SqlServer.Replication.BusinessLogicSupport.SourceIdentifier * System.Data.DataSet * DataSet * ConflictLogType * string * int * string -> Microsoft.SqlServer.Replication.BusinessLogicSupport.ActionOnUpdateDeleteConflict
override this.UpdateDeleteConflictHandler : Microsoft.SqlServer.Replication.BusinessLogicSupport.SourceIdentifier * System.Data.DataSet * DataSet * ConflictLogType * string * int * string -> Microsoft.SqlServer.Replication.BusinessLogicSupport.ActionOnUpdateDeleteConflict
Public Overridable Function UpdateDeleteConflictHandler (updateSource As SourceIdentifier, sourceDataSet As DataSet, ByRef customDataSet As DataSet, ByRef conflictLogType As ConflictLogType, ByRef customConflictMessage As String, ByRef historyLogLevel As Integer, ByRef historyLogMessage As String) As ActionOnUpdateDeleteConflict
Parameter
- updateSource
- SourceIdentifier
SourceIdentifier Apakah yang menunjukkan apakah sumber pembaruan adalah Penerbit atau Pelanggan.
- sourceDataSet
- DataSet
Himpunan data yang berisi GUID yang mewakili baris berkonflik.
- customDataSet
- DataSet
Himpunan data yang diterapkan oleh logika bisnis kustom.
- conflictLogType
- ConflictLogType
ConflictLogType diminta oleh penangan logika bisnis kustom.
- customConflictMessage
- String
Pesan konflik yang dikembalikan oleh handler logika bisnis kustom.
- historyLogLevel
- Int32
Tingkat log pesan kustom yang dikembalikan oleh penangan logika bisnis kustom.
- historyLogMessage
- String
Pesan log yang disediakan oleh handler logika bisnis kustom. Pesan log ditulis ke database distribusi.
Mengembalikan
Tindakan ActionOnUpdateDeleteConflict yang akan diambil oleh proses setelah handler logika bisnis kustom dijalankan.