ODataSerializerContext Constructor
Namespace: System.Web.Http.OData.Formatter.Serialization
Assembly: System.Web.Http.OData (in System.Web.Http.OData.dll)
Overload List
Name | Description | |
---|---|---|
ODataSerializerContext() | Initializes a new instance of the ODataSerializerContext class. |
|
ODataSerializerContext(EntityInstanceContext, SelectExpandClause, IEdmNavigationProperty) | Initializes a new instance of the ODataSerializerContext class. |
See Also
ODataSerializerContext Class
System.Web.Http.OData.Formatter.Serialization Namespace
Return to top
ODataSerializerContext Constructor ()
Initializes a new instance of the ODataSerializerContext class.
Syntax
public ODataSerializerContext()
public:
ODataSerializerContext()
new : unit -> ODataSerializerContext
Public Sub New
Return to top
ODataSerializerContext Constructor (EntityInstanceContext, SelectExpandClause, IEdmNavigationProperty)
Initializes a new instance of the ODataSerializerContext class.
Syntax
public ODataSerializerContext(
EntityInstanceContext entity,
SelectExpandClause selectExpandClause,
IEdmNavigationProperty navigationProperty
)
public:
ODataSerializerContext(
EntityInstanceContext^ entity,
SelectExpandClause^ selectExpandClause,
IEdmNavigationProperty^ navigationProperty
)
new :
entity:EntityInstanceContext *
selectExpandClause:SelectExpandClause *
navigationProperty:IEdmNavigationProperty -> ODataSerializerContext
Public Sub New (
entity As EntityInstanceContext,
selectExpandClause As SelectExpandClause,
navigationProperty As IEdmNavigationProperty
)
Parameters
entity
Type: System.Web.Http.OData.EntityInstanceContextThe entity whose navigation property is being expanded.
selectExpandClause
Type: Microsoft.Data.OData.Query.SemanticAst.SelectExpandClauseThe SelectExpandClause for the navigation property being expanded.
navigationProperty
Type: Microsoft.Data.Edm.IEdmNavigationPropertyThe navigation property being expanded.
Remarks
This constructor is used to construct the serializer context for writing expanded properties.
Return to top