Share via


FeedContext Class

Contains context information about the feed currently being serialized.

Inheritance Hierarchy

System.Object
  System.Web.Http.OData.FeedContext

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

Syntax

'Declaration
Public Class FeedContext
'Usage
Dim instance As FeedContext
public class FeedContext
public ref class FeedContext
type FeedContext =  class end
public class FeedContext

The FeedContext type exposes the following members.

Constructors

  Name Description
Public method FeedContext Initializes a new instance of the FeedContext class.

Top

Properties

  Name Description
Public property EntitySet Gets the IEdmEntitySet this instance belongs to.
Public property FeedInstance Gets the value of this feed instance.
Public property Request Gets or sets the HTTP request that caused this instance to be generated.
Public property RequestContext Gets or sets the request context.
Public property Url Gets or sets the UrlHelper to be used for generating links while serializing this feed instance.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

Extension Methods

  Name Description
Public Extension Method GenerateFeedSelfLink Generates a feed self link following the OData URL conventions for the feed represented by feedContext. (Defined by LinkGenerationHelpers.)

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 Namespace