ODataSerializerContext Class

Definition

Context information used by the ODataSerializer when serializing objects in OData message format.

public class ODataSerializerContext
type ODataSerializerContext = class
Public Class ODataSerializerContext
Inheritance
ODataSerializerContext

Constructors

ODataSerializerContext()

Initializes a new instance of the ODataSerializerContext class.

ODataSerializerContext(ResourceContext, SelectExpandClause, IEdmProperty)

Initializes a new instance of the ODataSerializerContext class.

Properties

EdmProperty

Gets or sets the complex property being nested or navigation property being expanded.

ExpandedResource

Gets or sets the resource that is being expanded.

ExpandReference

Gets or sets the boolean value indicating whether it's $ref expanded.

Items

Gets a property bag associated with this context to store any generic data.

MetadataLevel

Gets or sets the metadata level of the response.

Model

Gets or sets the EDM model associated with the request.

NavigationProperty

Gets or sets the navigation property being expanded.

NavigationSource

Gets or sets the navigation source.

Path

Gets or sets the ODataPath of the request.

QueryOptions

Gets or sets the ODataQueryOptions.

Request

Gets or sets the HTTP Request whose response is being serialized.

RequestContext

Gets or sets the request context.

RootElementName

Gets or sets the root element name which is used when writing primitive and enum types

SelectExpandClause

Gets or sets the SelectExpandClause.

SkipExpensiveAvailabilityChecks

Get or sets whether expensive links should be calculated.

Url

Gets or sets the System.Web.Http.Routing.UrlHelper to use for generating OData links.

Applies to