ODataSerializerContext Constructor
Namespace: System.Web.OData.Formatter.Serialization
Assembly: System.Web.OData (in System.Web.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.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.OData.EntityInstanceContextThe entity whose navigation property is being expanded.
selectExpandClause
Type: Microsoft.OData.Core.UriParser.Semantic.SelectExpandClauseThe SelectExpandClause for the navigation property being expanded.
navigationProperty
Type: Microsoft.OData.Edm.IEdmNavigationPropertyThe navigation property being expanded.
Remarks
This constructor is used to construct the serializer context for writing expanded properties.
Return to top