Share via


ODataSerializerContext Class

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

Inheritance Hierarchy

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

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

Syntax

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

The ODataSerializerContext type exposes the following members.

Constructors

  Name Description
Public method ODataSerializerContext() Initializes a new instance of the ODataSerializerContext class.
Public method ODataSerializerContext(EntityInstanceContext, SelectExpandClause, IEdmNavigationProperty) Initializes a new instance of the ODataSerializerContext class.

Top

Properties

  Name Description
Public property EntitySet Gets or sets the entity set.
Public property ExpandedEntity Gets or sets the entity that is being expanded.
Public property Items Gets a property bag associated with this context to store any generic data.
Public property MetadataLevel Gets or sets the metadata level of the response.
Public property Model Gets or sets the EDM model associated with the request.
Public property NavigationProperty Gets or sets the navigation property being expanded.
Public property Path Gets or sets the ODataPath of the request.
Public property Request Gets or sets the HTTP Request whose response is being serialized.
Public property RequestContext Gets or sets the request context.
Public property RootElementName Gets or sets the root element name which is used when writing primitive types and complex types.
Public property SelectExpandClause Gets or sets the SelectExpandClause.
Public property SkipExpensiveAvailabilityChecks Get or sets whether expensive links should be calculated.
Public property Url Gets or sets the UrlHelper to use for generating OData links.

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

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