Dynamicweb 8 Documentation
Delete(String) Method
Example 

DB field name is PriceID.
Deletes the specified instance from DB.
Syntax
'Declaration
 
Public Overloads Sub Delete( _ 
   ByVal ID As String _ 
) 
public void Delete( 
   string ID 
)

Parameters

ID
DB field name is PriceID.
Example
class MyPage : System.Web.UI.Page
{
    public void DoDelete()
    {
        Product prod = new Product();
        prod = (Product)Session["Ecom.Backend.Product"];

        Dynamicweb.eCommerce.Prices.Price prs = new Dynamicweb.eCommerce.Prices.Price();
        if (!string.IsNullOrEmpty(prs.ID))
        {
            prs.Delete(prs.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

Price Class
Price Members
Overload List

Send Feedback