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

 

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

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

public:
virtual ActionOnDataDelete DeleteHandler(
	SourceIdentifier deleteSource,
	DataSet^ deletedDataSet,
	int% historyLogLevel,
	String^% historyLogMessage
)

Parameters

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

Specifies whether the delete is initiated at the Publisher or at the Subscriber.

deletedDataSet
Type: System.Data::DataSet^

Dataset containing the GUID of the row that was deleted.

historyLogLevel
Type: System::Int32%

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

historyLogMessage
Type: System::String^%

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

Return Value

Type: Microsoft.SqlServer.Replication.BusinessLogicSupport::ActionOnDataDelete

The ActionOnDataDelete 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: