Share via


ODataResourceSerializer.CreateStructuralProperty Method

Definition

Creates the ODataProperty to be written for the given entity and the structural property.

public virtual Microsoft.OData.ODataProperty CreateStructuralProperty (Microsoft.OData.Edm.IEdmStructuralProperty structuralProperty, Microsoft.AspNet.OData.ResourceContext resourceContext);
abstract member CreateStructuralProperty : Microsoft.OData.Edm.IEdmStructuralProperty * Microsoft.AspNet.OData.ResourceContext -> Microsoft.OData.ODataProperty
override this.CreateStructuralProperty : Microsoft.OData.Edm.IEdmStructuralProperty * Microsoft.AspNet.OData.ResourceContext -> Microsoft.OData.ODataProperty
Public Overridable Function CreateStructuralProperty (structuralProperty As IEdmStructuralProperty, resourceContext As ResourceContext) As ODataProperty

Parameters

structuralProperty
IEdmStructuralProperty

The EDM structural property being written.

resourceContext
ResourceContext

The context for the entity instance being written.

Returns

The ODataProperty to write.

Applies to