SetPaging Method

Sets the StartingRecord and RecordsToRetrieve properties based on the supplied page number and page size.

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

Syntax

'Declaration
Public Sub SetPaging ( _
    pageNumber As Integer, _
    pageSize As Integer _
)
'Usage
Dim instance As CommonSearchOptions
Dim pageNumber As Integer
Dim pageSize As Integer

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

Parameters

Exceptions

Exception Condition
ArgumentOutOfRangeException

The supplied arguments are out of the valid range.

Remarks

Both pageNumber and pageSize must be greater than or equal to one.

Permissions

See Also

Reference

CommonSearchOptions Class

CommonSearchOptions Members

Microsoft.CommerceServer.Catalog Namespace