Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Common Namespace / CollectionEmulator Class / IndexOf Method / IndexOf<TKeyType>(IList<IEntityWithTypedId<TKeyType>>,TKeyType) Method
The type of the primary key.
The list of items to search.
The id of the item to search for.
In This Topic
    IndexOf<TKeyType>(IList<IEntityWithTypedId<TKeyType>>,TKeyType) Method
    In This Topic
    Gets the index of the object in this collection whose primary key matches the given value.
    Syntax

    Parameters

    list
    The list of items to search.
    id
    The id of the item to search for.

    Type Parameters

    TKeyType
    The type of the primary key.

    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