Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.DomainModel Namespace / PersistableList<T> Class / IndexOf Method / IndexOf(Object,Object) Method
the collection
the entity
In This Topic
    IndexOf(Object,Object) Method
    In This Topic
    ptional operation. Return the index of the entity in the collection.
    Syntax
    public object IndexOf( 
       object collection,
       object entity
    )

    Parameters

    collection
    the collection
    entity
    the entity

    Return Value

    The index of the entity in the collection or -1 if not found.
    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