QuerySpecExtensionMethodsOffsetTQuery Method |
Sets the offset of the query, the number of elements to skip before read will start. 0 means no offset.
Namespace:
SD.LLBLGen.Pro.QuerySpec
Assembly:
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.6.0.0 (5.6.19.0117)
Syntax public static TQuery Offset<TQuery>(
this TQuery query,
int offset
)
where TQuery : QuerySpec
<ExtensionAttribute>
Public Shared Function Offset(Of TQuery As QuerySpec) (
query As TQuery,
offset As Integer
) As TQuery
Parameters
- query
- Type: TQuery
The query. - offset
- Type: SystemInt32
The offset.
Type Parameters
- TQuery
- The type of the query.
Return Value
Type:
TQueryUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type . When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Exceptions Exception | Condition |
---|
ArgumentException | limit is a value which should be set to 0 or higher, where 0 means no limit |
Remarks Page() will overwrite this value.
See Also