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 | |
---|---|---|
ODataSerializerContext() | Initializes a new instance of the ODataSerializerContext class. |
|
ODataSerializerContext(EntityInstanceContext, SelectExpandClause, IEdmNavigationProperty) | Initializes a new instance of the ODataSerializerContext class. |
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. |
Methods
Name | Description | |
---|---|---|
Equals(Object) | (Inherited from Object.) |
|
Finalize() | (Inherited from Object.) |
|
GetHashCode() | (Inherited from Object.) |
|
GetType() | (Inherited from Object.) |
|
MemberwiseClone() | (Inherited from Object.) |
|
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