CReplicationServer.DeleteProject Method
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;
}