Share via


PageResult<T> Class

 

Represents a feed of entities that includes additional information that OData formats support.

Namespace:   System.Web.Http.OData
Assembly:  System.Web.Http.OData (in System.Web.Http.OData.dll)

Inheritance Hierarchy

System.Object
  System.Web.Http.OData.PageResult
    System.Web.Http.OData.PageResult<T>

Syntax

[JsonObjectAttribute]
[DataContractAttribute]
public class PageResult<T> : PageResult, IEnumerable<T>, IEnumerable
generic<typename T>
[JsonObjectAttribute]
[DataContractAttribute]
public ref class PageResult : PageResult, IEnumerable<T>, IEnumerable
[<JsonObjectAttribute>]
[<DataContractAttribute>]
type PageResult<'T> = 
    class
        inherit PageResult
        interface IEnumerable<'T>
        interface IEnumerable
    end
<JsonObjectAttribute>
<DataContractAttribute>
Public Class PageResult(Of T)
    Inherits PageResult
    Implements IEnumerable(Of T), IEnumerable

Constructors

Name Description
System_CAPS_pubmethod PageResult<T>(IEnumerable<T>, Uri, Nullable<Int64>)

Creates a partial set of results - used when server driven paging is enabled.

Properties

Name Description
System_CAPS_pubproperty Count

Gets the total count of items in the feed.(Inherited from PageResult.)

System_CAPS_pubproperty Items

Gets the collection of entities for this feed.

System_CAPS_pubproperty NextPageLink

Gets the link for the next page of items in the feed.(Inherited from PageResult.)

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetEnumerator()

Returns an enumerator that iterates through a collection.

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Explicit Interface Implementations

Name Description
System_CAPS_pubinterfaceSystem_CAPS_privmethod IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

Remarks

Currently limited to:

[list type="bullet"] [item] [description]The Count of all matching entities on the server (requested using $inlinecount=allpages).[/description] [/item] [item] [description]The NextLink to retrieve the next page of results (added if the server enforces Server Driven Paging).[/description] [/item] [/list]

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

System.Web.Http.OData Namespace

Return to top