Dynamicweb 8 Documentation
Contains(OrderField) Method
Example 

The orderfield.
Determines whether contains the specified order field.
Syntax
'Declaration
 
Public Overloads Shadows Function Contains( _ 
   ByVal orderfield As OrderField _ 
) As Boolean
public new bool Contains( 
   OrderField orderfield 
)

Parameters

orderfield
The orderfield.

Return Value

true if contains the specified order field; otherwise, false.
Example
class OrderField_EditPage : System.Web.UI.Page
{
    private void DeleteOrderField( OrderField fld )
    {
       if( Appliation.OrderFields.Contains(orderField)) {
           Database.ExecuteNonQuery("ALTER TABLE [EcomOrders] DROP COLUMN [" + orderField.SystemName + "]", "Ecom.mdb")
       }
 
        fld.Delete();
        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

OrderFieldCollection Class
OrderFieldCollection Members
Overload List

Send Feedback