次の方法で共有


CReplicationProject.RemoveDestination Method

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

Projects

Routes

How to Create and Modify a Staging Project

How to Manage Routes

How to Retrieve Project Information

CReplicationProject.AddDestination Method

CReplicationProject.EnumDestination Method

CReplicationProject Class