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 | |
---|---|---|
![]() |
ODataSerializerContext() | Initializes a new instance of the ODataSerializerContext class. |
![]() |
ODataSerializerContext(EntityInstanceContext, SelectExpandClause, IEdmNavigationProperty) | Initializes a new instance of the ODataSerializerContext class. |
Top
Properties
Name | Description | |
---|---|---|
![]() |
EntitySet | Gets or sets the entity set. |
![]() |
ExpandedEntity | Gets or sets the entity that is being 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. |
![]() |
Path | Gets or sets the ODataPath of the request. |
![]() |
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 types and complex types. |
![]() |
SelectExpandClause | Gets or sets the SelectExpandClause. |
![]() |
SkipExpensiveAvailabilityChecks | Get or sets whether expensive links should be calculated. |
![]() |
Url | Gets or sets the UrlHelper to use for generating OData links. |
Top
Methods
Name | Description | |
---|---|---|
![]() |
Equals | (Inherited from Object.) |
![]() |
Finalize | (Inherited from Object.) |
![]() |
GetHashCode | (Inherited from Object.) |
![]() |
GetType | (Inherited from Object.) |
![]() |
MemberwiseClone | (Inherited from Object.) |
![]() |
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.