Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.
Removes a destination that was defined for a Commerce Server Staging (CSS) project.
void RemoveDestination(string destination)
Parameters
- destination
The name of the destination to remove from the project. A destination can be a server name, a route name, or a directory.
Remarks
The CReplicationProject.RemoveDestination method corresponds to the COM method named ReplicationProject.RemoveDestination.
Example
The following example removes the destination server named Capricorn from the project named Test.
CReplicationServer replicationServer = new CReplicationServer();
replicationServer.Initialize("");
CReplicationProject replicationProject;
replicationProject = (CReplicationProject)replicationServer.OpenProject("Test", CSS_PROJECT_CREATION.OPEN_EXISTING_PROJECT);
replicationProject.RemoveDestination("Capricorn");
See Also
Other Resources
How to Create and Modify a Staging Project
How to Retrieve Project Information
CReplicationProject.AddDestination Method