Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Products Namespace / ProductReviewRepository Class / GetSearchCriteria Method / GetSearchCriteria(Int32,BitFieldState,String,Int32,Int32) Method
The id of the product to filter with.
Indicates whether approved, unapproved,or all reviews are desired.
The sort expression.
The maximum number of rows to return.
The index to start returning rows from.
In This Topic
    GetSearchCriteria(Int32,BitFieldState,String,Int32,Int32) Method
    In This Topic
    Generates a criteria for searching product reviews.
    Syntax
    protected NHibernate.ICriteria GetSearchCriteria( 
       int productId,
       BitFieldState approved,
       string sortExpression,
       int maximumRows,
       int startRowIndex
    )

    Parameters

    productId
    The id of the product to filter with.
    approved
    Indicates whether approved, unapproved,or all reviews are desired.
    sortExpression
    The sort expression.
    maximumRows
    The maximum number of rows to return.
    startRowIndex
    The index to start returning rows from.

    Return Value

    A search criteria for product reviews.
    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