Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Orders Namespace / ISubscriptionRepository Interface / Search Method / Search(Int32,String,String,String,String,String,DateTime,DateTime,BitFieldState,Int32,Int32,String) Method
Specifies the subscription plan to match - pass 0 for all plans.
Order number or range of orders to show.
User Id range of subscriptions to find.
The first name to match, by default a begins with match or use * wildcard to alter behavior.
The last name to match, by default a begins with match or use * wildcard to alter behavior.
The email name to match, by default a begins with match or use * wildcard to alter behavior.
Specifies to match subscriptions that expire on or after this date. Pass DateTime.MinValue for no start date.
Specifies to match subscriptions that expire on or before this date. Pass DateTime.MaxValue for no end date.
If true only active subscriptions will be included in results
Maximum number of rows to retrieve
Starting index from where to start retrieving
Sort expression to use for sorting the loaded objects
In This Topic
    Search(Int32,String,String,String,String,String,DateTime,DateTime,BitFieldState,Int32,Int32,String) Method
    In This Topic
    Gets a subscription collection matching the given search criteria
    Syntax

    Parameters

    subscriptionPlanId
    Specifies the subscription plan to match - pass 0 for all plans.
    orderRange
    Order number or range of orders to show.
    userIdRange
    User Id range of subscriptions to find.
    firstName
    The first name to match, by default a begins with match or use * wildcard to alter behavior.
    lastName
    The last name to match, by default a begins with match or use * wildcard to alter behavior.
    email
    The email name to match, by default a begins with match or use * wildcard to alter behavior.
    expirationStart
    Specifies to match subscriptions that expire on or after this date. Pass DateTime.MinValue for no start date.
    expirationEnd
    Specifies to match subscriptions that expire on or before this date. Pass DateTime.MaxValue for no end date.
    active
    If true only active subscriptions will be included in results
    maximumRows
    Maximum number of rows to retrieve
    startRowIndex
    Starting index from where to start retrieving
    sortExpression
    Sort expression to use for sorting the loaded objects

    Return Value

    A collection of subscriptions matching the given search criteria
    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