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
- pageNumber
Type: System..::.Int32
The desired page number.
- pageSize
Type: System..::.Int32
The desired page size.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.