Jaa


CReplicationServer.InitializeEx Method

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

Initializes a CReplicationServer object for a Commerce Server Staging (CSS) server. This method is similar to the CReplicationServer.Initialize method, except that it lets you set a different user context and an optional time-out value.

void InitializeEx(string server, string userName, string password, int timeout)

Parameters

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

  • userName
    The name of the user account to use to log on to the server.

  • password
    The password for the userName account on server.

    Note

    CSS does not transmit passwords from one server to another. You can set the password only on the server where you are currently logged on.

  • timeout
    The amount of time, in milliseconds, to wait for the server to initialize before timing out. The default is 300000 (5 minutes).

Remarks

You must have CSS administrator permissions to call this method.

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

Example

The following example initializes the current server under user User1, with the password Password1.

CReplicationServer replicationServer = new CReplicationServer();
  replicationServer.InitializeEx("", "User1", "Password1", 300000);

See Also

Other Resources

CReplicationServer.Initialize Method

CReplicationServer Class