TruncatedCollection<T> Constructor
Namespace: System.Web.Http.OData.Query
Assembly: System.Web.Http.OData (in System.Web.Http.OData.dll)
Overload List
Name | Description | |
---|---|---|
TruncatedCollection<T>(IEnumerable<T>, Int32) | Initializes a new instance of the TruncatedCollection<T> class. |
|
TruncatedCollection<T>(IQueryable<T>, Int32) | Initializes a new instance of the TruncatedCollection<T> class. |
See Also
TruncatedCollection<T> Class
System.Web.Http.OData.Query Namespace
Return to top
TruncatedCollection<T> Constructor (IEnumerable<T>, Int32)
Initializes a new instance of the TruncatedCollection<T> class.
Syntax
public TruncatedCollection(
IEnumerable<T> source,
int pageSize
)
public:
TruncatedCollection(
IEnumerable<T>^ source,
int pageSize
)
new :
source:IEnumerable<'T> *
pageSize:int -> TruncatedCollection
Public Sub New (
source As IEnumerable(Of T),
pageSize As Integer
)
Parameters
source
Type: System.Collections.Generic.IEnumerable<T>The collection to be truncated.
pageSize
Type: System.Int32The page size.
Return to top
TruncatedCollection<T> Constructor (IQueryable<T>, Int32)
Initializes a new instance of the TruncatedCollection<T> class.
Syntax
public TruncatedCollection(
IQueryable<T> source,
int pageSize
)
public:
TruncatedCollection(
IQueryable<T>^ source,
int pageSize
)
new :
source:IQueryable<'T> *
pageSize:int -> TruncatedCollection
Public Sub New (
source As IQueryable(Of T),
pageSize As Integer
)
Parameters
source
Type: System.Linq.IQueryable<T>The queryable collection to be truncated.
pageSize
Type: System.Int32The page size.
Return to top