Commit Method

This method commits changes to Content Deployment.

Syntax

ReplicationServer.Commit

Parameters

None.

Remarks

You must have Site Server Publishing administrator privileges on the server to call this method.

You must stop and start Content Deployment for the new values to take effect.

Example

The following example checks whether transaction processing is on, and if not, turns it on, commits the change, and stops and restarts the server.

Option Explicit 
On Error Resume Next 

dim ReplServer
set ReplServer = CreateObject("CrsApi.ReplicationServer")
ReplServer.Initialize("")

dim TransProc
TransProc = ReplServer.UseTransactions

if TransProc = False then
  ReplServer.UseTransactions = True
  ReplServer.Commit
  ReplServer.Stop
  ReplServer.Start
end if

'Release Server object
set ReplServer = Nothing

See Also

Start, Stop


© 1997-1998 Microsoft Corporation. All rights reserved.