Freigeben über


CReplicationRoute.Commit Method

Commits changes that have been made to a Commerce Server Staging (CSS) route.

void Commit()

Remarks

You must have CSS administrator rights to call this method.

This method commits changes that were made to the route properties. You must call this method when you create a new route. You must set the required BaseDirectory route property before you call Commit.

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

Example

The following example commits the new route named Test for an endpoint server.

CReplicationServer replicationServer = new CReplicationServer();
replicationServer.Initialize("");
CReplicationRoute replicationRoute;
replicationRoute = (CReplicationRoute)replicationServer.AddRoute("Test");
replicationRoute.set_BaseDirectory(@"D:\INETPUB\WWWROOT");
replicationRoute.Commit();

See Also

Other Resources

CReplicationServer.AddRoute Method

CReplicationServer.EnumRoutes Method

CReplicationRoute Class