Share via


CReplicationRoute.Put Method

Sets the value of a property for a Commerce Server Staging (CSS) route.

void Put(string propName, object propValue)

Parameters

  • propName
    The name of the property to set. The only property available is BaseDirectory. This property identifies the directory from which the content is replicated.

  • propValue
    The property value to set. For the BaseDirectory property, you must provide the full path of the base directory.

Remarks

Properties are not set for the route until they are committed by calling the Commit method on the CReplicationRoute object.

The CReplicationRoute.Put method corresponds to the COM method named ReplicationRoute.Put.

Example

The following example sets the value of the BaseDirectory property to C:\Test for the route named Test.

CReplicationServer replicationServer = new CReplicationServer();
replicationServer.Initialize("");
CReplicationRoute replicationRoute;
replicationRoute = (CReplicationRoute)replicationServer.AddRoute("Test");
replicationRoute.Put("BaseDirectory", @"C:\Test");
replicationRoute.Commit();

See Also

Other Resources

CReplicationRoute.BaseDirectory Property

CReplicationRoute.Get Method

CReplicationRoute.Commit Method

CReplicationRoute Class