Dynamicweb.eCommerce.Orders Namespace > OrderFieldCollection Class > Contains Method : Contains(OrderField) Method |
'Declaration
Public Overloads Shadows Function Contains( _ ByVal orderfield As OrderField _ ) As Boolean
public new bool Contains( OrderField orderfield )
true
if contains the specified order field; otherwise, false
.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(); } }
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