This method applies any pending transaction for the project.
Syntax
ReplicationProject.ApplyTransaction(Reserved)
Parameters
Reserved
Reserved. Must be zero.
Remarks
You must have Site Server Publishing administrator privileges on the server to call this method.
Immediately applies any transactions pending for the project.
Example
The following example applies any pending transactions for the project Project1.
Option Explicit
On Error Resume Next
const OPEN_EXISTING_PROJECT = 2
dim ReplServer
set ReplServer = CreateObject("CrsApi.ReplicationServer")
ReplServer.Initialize("")
dim ReplProject
set ReplProject = ReplServer.OpenProject("Project1", OPEN_EXISTING_PROJECT)
'Fire up a client
dim ReplClient
ReplClient = ReplProject.StartReplicationClient(0)
'Do some replicating
...
'Commit client's actions and applies any transactions
ReplClient.Commit
ReplProject.ApplyTransaction
'Release objects
set ReplProject = Nothing
set ReplServer = Nothing