Partilhar via


CReplicationServer.DeleteProject Method

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

Deletes a Commerce Server Staging (CSS) project from the server.

void DeleteProject(string project)

Parameters

  • project
    The name of the project to delete.

Remarks

You must have CSS administrator rights to call this method.

The CReplicationServer.DeleteProject method corresponds to the COM method named ReplicationServer.DeleteProject.

Example

The following example deletes the project named Project1.

CReplicationServer replicationServer = new CReplicationServer();
  replicationServer.Initialize("");
  try
  {
      replicationServer.DeleteProject("Project1");
  }
  catch (System.Runtime.InteropServices.COMException e)
  {
      if (e.ErrorCode == -1073680687)
          Console.WriteLine("Project1 not found!");
      else
         throw;
  }

See Also

Other Resources

Projects

How to Create and Modify a Staging Project

CReplicationServer Class