Dynamicweb.eCommerce.Orders Namespace > OrderFieldCollection Class > Contains Method : Contains(String) Method |
'Declaration
Public Overloads Function Contains( _ ByVal orderfieldSystemName As String _ ) As Boolean
true
if contains the specified system name of the order field; otherwise, false
.class OrderField_EditPage : System.Web.UI.Page { private void DeleteOrderField( OrderField fld ) { if( Appliation.OrderFields.Contains(orderField.SystemName)) { 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