Dynamicweb 8 Documentation
Delete(String) Method
Example 

The order ID.
Deletes the order.
Syntax
'Declaration
 
Public Overloads Shared Sub Delete( _ 
   ByVal ID As String _ 
) 
public static void Delete( 
   string ID 
)

Parameters

ID
The order ID.
Example
class MyPage : System.Web.UI.Page
{
   private void DeleteOrder(string orderId)
   {
       if (orderId.Length == 0)
           return;
       Dynamicweb.eCommerce.Orders.Order order = Dynamicweb.eCommerce.Orders.Order.Create(orderId);
       if (order.ID != null)
           order.Delete(order.ID);
   }
}
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Order Class
Order Members
Overload List

Send Feedback