Share via


SetPaging Method

Assigns the StartRecord and NumberOfRecordsToReturn properties to return the specified page.

Namespace:  Microsoft.CommerceServer
Assembly:  Microsoft.CommerceServer.CrossTierTypes (in Microsoft.CommerceServer.CrossTierTypes.dll)

Syntax

'Declaration
Public Sub SetPaging ( _
    recordsPerPage As Integer, _
    pageNumber As Integer _
)
'Usage
Dim instance As SearchOptions
Dim recordsPerPage As Integer
Dim pageNumber As Integer

instance.SetPaging(recordsPerPage, pageNumber)
public void SetPaging(
    int recordsPerPage,
    int pageNumber
)
public:
void SetPaging(
    int recordsPerPage, 
    int pageNumber
)
public function SetPaging(
    recordsPerPage : int, 
    pageNumber : int
)

Parameters

  • recordsPerPage
    Type: System..::.Int32
    Assigns the number of records to return on each page. Must be greater than zero.
  • pageNumber
    Type: System..::.Int32
    Assigns the page number. Must be greater than zero.

Exceptions

Exception Condition
ArgumentException

recordsPerPage is equal to or less than zero.

Remarks

Assigns the StartRecord and NumberOfRecordsToReturn properties to return the specified page.

Permissions

See Also

Reference

SearchOptions Class

SearchOptions Members

Microsoft.CommerceServer Namespace