BusinessLogicModule::InsertHandler Method (SourceIdentifier, DataSet^, DataSet^%, Int32%, String^%)
Optional method that implements the custom business logic invoked when INSERT statements are being uploaded or downloaded.
Assembly: Microsoft.SqlServer.Replication.BusinessLogicSupport (in Microsoft.SqlServer.Replication.BusinessLogicSupport.dll)
public: virtual ActionOnDataChange InsertHandler( SourceIdentifier insertSource, DataSet^ insertedDataSet, DataSet^% customDataSet, int% historyLogLevel, String^% historyLogMessage )
Parameters
- insertSource
-
Type:
Microsoft.SqlServer.Replication.BusinessLogicSupport::SourceIdentifier
SourceIdentifier that defines whether the insert was initiated at the Publisher or the Subscriber.
- insertedDataSet
-
Type:
System.Data::DataSet^
Dataset that contains the GUID of the row that was inserted.
- customDataSet
-
Type:
System.Data::DataSet^%
Dataset that contains the modified row returned 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 the custom business logic. The log message gets written to the distribution database.
Return Value
Type: Microsoft.SqlServer.Replication.BusinessLogicSupport::ActionOnDataChangeThe ActionOnDataChange action that will be taken by the process after the custom business logic has executed.
Show: