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.
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;
}