CReplicationServer.DeleteRoute Method

Deletes a route from the Commerce Server Staging (CSS) routing table for the server.

void DeleteRoute(string route) 

Parameters

  • route
    The name of the route to delete.

Remarks

You must have CSS administrator permissions to call this method.

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

Example

The following example deletes the route named Test.

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

See Also

Other Resources

Routes

How to Manage Routes

CReplicationServer Class