Condividi tramite


BusinessLogicModule.CommitHandler Method

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

Spazio dei nomi: Microsoft.SqlServer.Replication.BusinessLogicSupport
Assembly : Microsoft.SqlServer.Replication.BusinessLogicSupport (in microsoft.sqlserver.replication.businesslogicsupport.dll)

Sintassi

'Dichiarazione
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
)

Parametri

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

Thread Safety

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.

Piattaforme

Piattaforme di sviluppo

Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.

Piattaforme di destinazione

Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.

Vedere anche

Riferimento

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

Altre risorse

Esecuzione di regole business durante la sincronizzazione di tipo merge
How to: Implement a Business Logic Handler for a Merge Article (Replication Programming)