CReplicationServer.Initialize Method

Initializes a CReplicationServer object on the Commerce Server Staging (CSS) server.

void Initialize(string server)

Parameters

  • server
    The name of the server to initialize. Use an empty string ("") to initialize the current server.

Remarks

You must have CSS administrator permissions to call this method. This method must be called before any other methods.

Note

If you try to initialize a remote server on which the CSS service is not running, this method fails and sets the e.ErrorCode property to CSS_EVENT_ERROR_SERVICE_DOWN_ON_REMOTE_SERVER (0xC000EFF6). If you encounter this error, restart the CSS service and reinitialize the server.

The CReplicationServer.Initialize method corresponds to the COM method named ReplicationServer.Initialize.

Example

The following example initializes the current server.

CReplicationServer replicationServer = new CReplicationServer();
  replicationServer.Initialize("");

See Also

Other Resources

Managing the CSS Service

How to Create and Modify a Staging Project

How to Set, Modify, and Retrieve Global Properties for a CSS Service

CReplicationServer.InitializeEx Method

CReplicationServer Class