Share via


ODataSerializerContext Class

 

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

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

Inheritance Hierarchy

System.Object
  System.Web.Http.OData.Formatter.Serialization.ODataSerializerContext

Syntax

public class ODataSerializerContext
public ref class ODataSerializerContext 
type ODataSerializerContext = class end
Public Class ODataSerializerContext

Constructors

Name Description
System_CAPS_pubmethod ODataSerializerContext()

Initializes a new instance of the ODataSerializerContext class.

System_CAPS_pubmethod ODataSerializerContext(EntityInstanceContext, SelectExpandClause, IEdmNavigationProperty)

Initializes a new instance of the ODataSerializerContext class.

Properties

Name Description
System_CAPS_pubproperty EntitySet

Gets or sets the entity set.

System_CAPS_pubproperty ExpandedEntity

Gets or sets the entity that is being expanded.

System_CAPS_pubproperty Items

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

System_CAPS_pubproperty MetadataLevel

Gets or sets the metadata level of the response.

System_CAPS_pubproperty Model

Gets or sets the EDM model associated with the request.

System_CAPS_pubproperty NavigationProperty

Gets or sets the navigation property being expanded.

System_CAPS_pubproperty Path

Gets or sets the ODataPath of the request.

System_CAPS_pubproperty Request

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

System_CAPS_pubproperty RequestContext

Gets or sets the request context.

System_CAPS_pubproperty RootElementName

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

System_CAPS_pubproperty SelectExpandClause

Gets or sets the SelectExpandClause.

System_CAPS_pubproperty SkipExpensiveAvailabilityChecks

Get or sets whether expensive links should be calculated.

System_CAPS_pubproperty Url

Gets or sets the UrlHelper to use for generating OData links.

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

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.)

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.Formatter.Serialization Namespace

Return to top