共用方式為


BusinessLogicModule.CommitHandler Method

Optional method implements the custom business logic that is invoked when a data change is committed during synchronization.

命名空間: Microsoft.SqlServer.Replication.BusinessLogicSupport
組件: Microsoft.SqlServer.Replication.BusinessLogicSupport (in microsoft.sqlserver.replication.businesslogicsupport.dll)

語法

'宣告
Public Overridable Sub CommitHandler ( _
    source As SourceIdentifier, _
    rowGuid As Guid _
)
public virtual void CommitHandler (
    SourceIdentifier source,
    Guid rowGuid
)
public:
virtual void CommitHandler (
    SourceIdentifier source, 
    Guid rowGuid
)
public void CommitHandler (
    SourceIdentifier source, 
    Guid rowGuid
)
public function CommitHandler (
    source : SourceIdentifier, 
    rowGuid : Guid
)

參數

  • source
    SourceIdentifier that indicates whether the source of the change is the Publisher or the Subscriber.
  • rowGuid
    GUID of the row that was committed.

執行緒安全性

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

平台

開發平台

如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。

目標平台

如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。

請參閱

參考

BusinessLogicModule Class
BusinessLogicModule Members
Microsoft.SqlServer.Replication.BusinessLogicSupport Namespace

其他資源

在合併同步處理期間執行商務邏輯
How to: Implement a Business Logic Handler for a Merge Article (Replication Programming)