ODataResourceSerializer.CreateStructuralProperty Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.