BusinessLogicModule::UpdateHandler Method (SourceIdentifier, DataSet^, DataSet^%, Int32%, String^%)

 

Optional method that implements the custom business logic invoked when UPDATE statements are being uploaded or downloaded.

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

public:
virtual ActionOnDataChange UpdateHandler(
	SourceIdentifier updateSource,
	DataSet^ updatedDataSet,
	DataSet^% customDataSet,
	int% historyLogLevel,
	String^% historyLogMessage
)

Parameters

updateSource
Type: Microsoft.SqlServer.Replication.BusinessLogicSupport::SourceIdentifier

Specifies whether the update was initiated at the Publisher or at the Subscriber.

updatedDataSet
Type: System.Data::DataSet^

Dataset representing the data being updated.

customDataSet
Type: System.Data::DataSet^%

Dataset implemented by the custom business logic.

historyLogLevel
Type: System::Int32%

Log level of the custom message returned by the custom business logic.

historyLogMessage
Type: System::String^%

Log message provided by custom business logic. The log message gets written to the distribution database.

Return Value

Type: Microsoft.SqlServer.Replication.BusinessLogicSupport::ActionOnDataChange

The ActionOnDataChange action that will be taken by the process after the custom business logic has executed.

No code example is currently available or this language may not be supported.
Return to top
Show: