Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.DomainModel Namespace / IPersistableList<T> Interface / IndexOf Method
The id of the item to search for.
Version
IndexOf Method (IPersistableList<T>)
Gets the index of the object in this collection whose primary key matches the given value.
Syntax
int IndexOf( 
   Nullable<int> id
)

Parameters

id
The id of the item to search for.

Return Value

Index of the object.
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