Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Products Namespace / IOptionChoiceRepository Interface / GetAvailableChoices Method
Id of the product
Id of the option to check for choices
An IDictionary<int, int> of option choices already selected. The dictionary key is the OptionId and the value is the OptionChoiceId.
In This Topic
    GetAvailableChoices Method (IOptionChoiceRepository)
    In This Topic
    Gets available choices for a product for given option
    Syntax

    Parameters

    productId
    Id of the product
    targetOptionId
    Id of the option to check for choices
    selectedChoices
    An IDictionary<int, int> of option choices already selected. The dictionary key is the OptionId and the value is the OptionChoiceId.

    Return Value

    Collection of OptionChoice objects
    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