Dynamicweb 8 Documentation
Delete(String) Method
Example 

Name of the system.
Deletes the specified instance.
Syntax
'Declaration
 
Public Overloads Shared Function Delete( _ 
   ByVal systemName As String _ 
) As Boolean
public static bool Delete( 
   string systemName 
)

Parameters

systemName
Name of the system.

Return Value

true if success; otherwise, false.
Example
class OrderLineField_EditPage : System.Web.UI.Page
{
    private void DeleteOrderLineField()
    {
        if( !SystemNameText.Enabled && SystemNameText.Text != "" )
        {
            OrderLineField.Delete(SystemNameText.Text);
            OrderLineFieldGroupRelation.DeleteBySystemName(SystemNameText.Text);
            Dynamicweb.eCommerce.Common.Application.KillOrderLineFields();
        }
    }
}
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

OrderLineField Class
OrderLineField Members
Overload List

Send Feedback