Share via


ODataSerializerContext Constructors

Definition

Overloads

ODataSerializerContext()

Initializes a new instance of the ODataSerializerContext class.

ODataSerializerContext(ResourceContext, SelectExpandClause, IEdmProperty)

Initializes a new instance of the ODataSerializerContext class.

ODataSerializerContext()

Initializes a new instance of the ODataSerializerContext class.

public ODataSerializerContext ();
Public Sub New ()

Applies to

ODataSerializerContext(ResourceContext, SelectExpandClause, IEdmProperty)

Initializes a new instance of the ODataSerializerContext class.

public ODataSerializerContext (Microsoft.AspNet.OData.ResourceContext resource, Microsoft.OData.UriParser.SelectExpandClause selectExpandClause, Microsoft.OData.Edm.IEdmProperty edmProperty);
new Microsoft.AspNet.OData.Formatter.Serialization.ODataSerializerContext : Microsoft.AspNet.OData.ResourceContext * Microsoft.OData.UriParser.SelectExpandClause * Microsoft.OData.Edm.IEdmProperty -> Microsoft.AspNet.OData.Formatter.Serialization.ODataSerializerContext
Public Sub New (resource As ResourceContext, selectExpandClause As SelectExpandClause, edmProperty As IEdmProperty)

Parameters

resource
ResourceContext

The resource whose property is being nested.

selectExpandClause
SelectExpandClause

The SelectExpandClause for the property being nested.

edmProperty
IEdmProperty

The complex property being nested or the navigation property being expanded. If the resource property is the dynamic complex, the resource property is null.

Remarks

This constructor is used to construct the serializer context for writing nested and expanded properties.

Applies to