次の方法で共有


CReplicationClient.Initialize Method

Initializes the CReplicationClient object and sets the Commerce Server Staging (CSS) project context for the object.

Note

This method and the CReplicationClient object are used to stage individual files.

void Initialize(string project)

Parameters

  • project
    The name of the CSS Web content project to use for this replication object.

Remarks

You must have CSS administrator or operator rights on the project to call this method.

Before you call the Initialize method, you must create the project by using the OpenProject method on the CReplicationServer class.

Initialize must be the first method that you call on a CReplicationClient object. If you create the object by using the CReplicationProject object, you do not have to call this method.

The CReplicationClient.Initialize method corresponds to the COM method named ReplicationClient.Initialize.

Example

The following example initializes an existing project named Project1.

CReplicationClient replicationClient = new CReplicationClient();
replicationClient.Initialize("Project1");

See Also

Other Resources

CReplicationProject.Start Method

CReplicationServer.OpenProject Method

CReplicationClient Class