TruncatedCollection<T> Class
Represents a class that truncates a collection to a given page size.
Inheritance Hierarchy
System.Object
System.Collections.Generic.List<T>
System.Web.Http.OData.Query.TruncatedCollection<T>
Namespace: System.Web.Http.OData.Query
Assembly: System.Web.Http.OData (in System.Web.Http.OData.dll)
Syntax
'Declaration
Public Class TruncatedCollection(Of T) _
Inherits List(Of T) _
Implements ITruncatedCollection, IEnumerable(Of T), IEnumerable
'Usage
Dim instance As TruncatedCollection(Of T)
public class TruncatedCollection<T> : List<T>,
ITruncatedCollection, IEnumerable<T>, IEnumerable
generic<typename T>
public ref class TruncatedCollection : public List<T>,
ITruncatedCollection, IEnumerable<T>, IEnumerable
type TruncatedCollection<'T> =
class
inherit List<'T>
interface ITruncatedCollection
interface IEnumerable<'T>
interface IEnumerable
end
JScript does not support generic types and methods.
Type Parameters
- T
The collection element type.
The TruncatedCollection<T> type exposes the following members.
Constructors
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. |
Top
Properties
Name | Description | |
---|---|---|
Capacity | (Inherited from List<T>.) | |
Count | (Inherited from List<T>.) | |
IsTruncated | Gets a value indicating whether the collection is truncated. | |
Item | (Inherited from List<T>.) | |
PageSize | Gets the page size the collection is truncated to. |
Top
Methods
Name | Description | |
---|---|---|
Add | (Inherited from List<T>.) | |
AddRange | (Inherited from List<T>.) | |
AsReadOnly | (Inherited from List<T>.) | |
BinarySearch(T) | (Inherited from List<T>.) | |
BinarySearch(T, IComparer<T>) | (Inherited from List<T>.) | |
BinarySearch(Int32, Int32, T, IComparer<T>) | (Inherited from List<T>.) | |
Clear | (Inherited from List<T>.) | |
Contains | (Inherited from List<T>.) | |
ConvertAll<TOutput> | (Inherited from List<T>.) | |
CopyTo(array<T[]) | (Inherited from List<T>.) | |
CopyTo(array<T[], Int32) | (Inherited from List<T>.) | |
CopyTo(Int32, array<T[], Int32, Int32) | (Inherited from List<T>.) | |
Equals | (Inherited from Object.) | |
Exists | (Inherited from List<T>.) | |
Finalize | (Inherited from Object.) | |
Find | (Inherited from List<T>.) | |
FindAll | (Inherited from List<T>.) | |
FindIndex(Predicate<T>) | (Inherited from List<T>.) | |
FindIndex(Int32, Predicate<T>) | (Inherited from List<T>.) | |
FindIndex(Int32, Int32, Predicate<T>) | (Inherited from List<T>.) | |
FindLast | (Inherited from List<T>.) | |
FindLastIndex(Predicate<T>) | (Inherited from List<T>.) | |
FindLastIndex(Int32, Predicate<T>) | (Inherited from List<T>.) | |
FindLastIndex(Int32, Int32, Predicate<T>) | (Inherited from List<T>.) | |
ForEach | (Inherited from List<T>.) | |
GetEnumerator | (Inherited from List<T>.) | |
GetHashCode | (Inherited from Object.) | |
GetRange | (Inherited from List<T>.) | |
GetType | (Inherited from Object.) | |
IndexOf(T) | (Inherited from List<T>.) | |
IndexOf(T, Int32) | (Inherited from List<T>.) | |
IndexOf(T, Int32, Int32) | (Inherited from List<T>.) | |
Insert | (Inherited from List<T>.) | |
InsertRange | (Inherited from List<T>.) | |
LastIndexOf(T) | (Inherited from List<T>.) | |
LastIndexOf(T, Int32) | (Inherited from List<T>.) | |
LastIndexOf(T, Int32, Int32) | (Inherited from List<T>.) | |
MemberwiseClone | (Inherited from Object.) | |
Remove | (Inherited from List<T>.) | |
RemoveAll | (Inherited from List<T>.) | |
RemoveAt | (Inherited from List<T>.) | |
RemoveRange | (Inherited from List<T>.) | |
Reverse() | (Inherited from List<T>.) | |
Reverse(Int32, Int32) | (Inherited from List<T>.) | |
Sort() | (Inherited from List<T>.) | |
Sort(IComparer<T>) | (Inherited from List<T>.) | |
Sort(Comparison<T>) | (Inherited from List<T>.) | |
Sort(Int32, Int32, IComparer<T>) | (Inherited from List<T>.) | |
ToArray | (Inherited from List<T>.) | |
ToString | (Inherited from Object.) | |
TrimExcess | (Inherited from List<T>.) | |
TrueForAll | (Inherited from List<T>.) |
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
IList.Add | (Inherited from List<T>.) | |
IList.Contains | (Inherited from List<T>.) | |
ICollection.CopyTo | (Inherited from List<T>.) | |
IEnumerable<T>.GetEnumerator | (Inherited from List<T>.) | |
IEnumerable.GetEnumerator | (Inherited from List<T>.) | |
IList.IndexOf | (Inherited from List<T>.) | |
IList.Insert | (Inherited from List<T>.) | |
IList.IsFixedSize | (Inherited from List<T>.) | |
ICollection<T>.IsReadOnly | (Inherited from List<T>.) | |
IList.IsReadOnly | (Inherited from List<T>.) | |
ICollection.IsSynchronized | (Inherited from List<T>.) | |
IList.Item | (Inherited from List<T>.) | |
IList.Remove | (Inherited from List<T>.) | |
ICollection.SyncRoot | (Inherited from List<T>.) |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.