Dynamicweb 8 Documentation
Contains(String) Method
Example 

Name of the orderfield system.
Determines whether the collection contains the specified system name of the order field.
Syntax
'Declaration
 
Public Overloads Function Contains( _ 
   ByVal orderfieldSystemName As String _ 
) As Boolean
public bool Contains( 
   string orderfieldSystemName 
)

Parameters

orderfieldSystemName
Name of the orderfield system.

Return Value

true if contains the specified system name of the order field; otherwise, false.
Example
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();
    }
}
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