Share via


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
Public method TruncatedCollection<T>(IEnumerable<T>, Int32) Initializes a new instance of the TruncatedCollection<T> class.
Public method TruncatedCollection<T>(IQueryable<T>, Int32) Initializes a new instance of the TruncatedCollection<T> class.

Top

Properties

  Name Description
Public property Capacity (Inherited from List<T>.)
Public property Count (Inherited from List<T>.)
Public property IsTruncated Gets a value indicating whether the collection is truncated.
Public property Item (Inherited from List<T>.)
Public property PageSize Gets the page size the collection is truncated to.

Top

Methods

  Name Description
Public method Add (Inherited from List<T>.)
Public method AddRange (Inherited from List<T>.)
Public method AsReadOnly (Inherited from List<T>.)
Public method BinarySearch(T) (Inherited from List<T>.)
Public method BinarySearch(T, IComparer<T>) (Inherited from List<T>.)
Public method BinarySearch(Int32, Int32, T, IComparer<T>) (Inherited from List<T>.)
Public method Clear (Inherited from List<T>.)
Public method Contains (Inherited from List<T>.)
Public method ConvertAll<TOutput> (Inherited from List<T>.)
Public method CopyTo(array<T[]) (Inherited from List<T>.)
Public method CopyTo(array<T[], Int32) (Inherited from List<T>.)
Public method CopyTo(Int32, array<T[], Int32, Int32) (Inherited from List<T>.)
Public method Equals (Inherited from Object.)
Public method Exists (Inherited from List<T>.)
Protected method Finalize (Inherited from Object.)
Public method Find (Inherited from List<T>.)
Public method FindAll (Inherited from List<T>.)
Public method FindIndex(Predicate<T>) (Inherited from List<T>.)
Public method FindIndex(Int32, Predicate<T>) (Inherited from List<T>.)
Public method FindIndex(Int32, Int32, Predicate<T>) (Inherited from List<T>.)
Public method FindLast (Inherited from List<T>.)
Public method FindLastIndex(Predicate<T>) (Inherited from List<T>.)
Public method FindLastIndex(Int32, Predicate<T>) (Inherited from List<T>.)
Public method FindLastIndex(Int32, Int32, Predicate<T>) (Inherited from List<T>.)
Public method ForEach (Inherited from List<T>.)
Public method GetEnumerator (Inherited from List<T>.)
Public method GetHashCode (Inherited from Object.)
Public method GetRange (Inherited from List<T>.)
Public method GetType (Inherited from Object.)
Public method IndexOf(T) (Inherited from List<T>.)
Public method IndexOf(T, Int32) (Inherited from List<T>.)
Public method IndexOf(T, Int32, Int32) (Inherited from List<T>.)
Public method Insert (Inherited from List<T>.)
Public method InsertRange (Inherited from List<T>.)
Public method LastIndexOf(T) (Inherited from List<T>.)
Public method LastIndexOf(T, Int32) (Inherited from List<T>.)
Public method LastIndexOf(T, Int32, Int32) (Inherited from List<T>.)
Protected method MemberwiseClone (Inherited from Object.)
Public method Remove (Inherited from List<T>.)
Public method RemoveAll (Inherited from List<T>.)
Public method RemoveAt (Inherited from List<T>.)
Public method RemoveRange (Inherited from List<T>.)
Public method Reverse() (Inherited from List<T>.)
Public method Reverse(Int32, Int32) (Inherited from List<T>.)
Public method Sort() (Inherited from List<T>.)
Public method Sort(IComparer<T>) (Inherited from List<T>.)
Public method Sort(Comparison<T>) (Inherited from List<T>.)
Public method Sort(Int32, Int32, IComparer<T>) (Inherited from List<T>.)
Public method ToArray (Inherited from List<T>.)
Public method ToString (Inherited from Object.)
Public method TrimExcess (Inherited from List<T>.)
Public method TrueForAll (Inherited from List<T>.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IList.Add (Inherited from List<T>.)
Explicit interface implemetationPrivate method IList.Contains (Inherited from List<T>.)
Explicit interface implemetationPrivate method ICollection.CopyTo (Inherited from List<T>.)
Explicit interface implemetationPrivate method IEnumerable<T>.GetEnumerator (Inherited from List<T>.)
Explicit interface implemetationPrivate method IEnumerable.GetEnumerator (Inherited from List<T>.)
Explicit interface implemetationPrivate method IList.IndexOf (Inherited from List<T>.)
Explicit interface implemetationPrivate method IList.Insert (Inherited from List<T>.)
Explicit interface implemetationPrivate property IList.IsFixedSize (Inherited from List<T>.)
Explicit interface implemetationPrivate property ICollection<T>.IsReadOnly (Inherited from List<T>.)
Explicit interface implemetationPrivate property IList.IsReadOnly (Inherited from List<T>.)
Explicit interface implemetationPrivate property ICollection.IsSynchronized (Inherited from List<T>.)
Explicit interface implemetationPrivate property IList.Item (Inherited from List<T>.)
Explicit interface implemetationPrivate method IList.Remove (Inherited from List<T>.)
Explicit interface implemetationPrivate property 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.

See Also

Reference

System.Web.Http.OData.Query Namespace