ODataEntityTypeSerializer.CreateStructuralProperty Method (IEdmStructuralProperty, EntityInstanceContext)
Creates the ODataProperty to be written for the given entity and the structural property.
Namespace: System.Web.OData.Formatter.Serialization
Assembly: System.Web.OData (in System.Web.OData.dll)
Syntax
public virtual ODataProperty CreateStructuralProperty(
IEdmStructuralProperty structuralProperty,
EntityInstanceContext entityInstanceContext
)
public:
virtual ODataProperty^ CreateStructuralProperty(
IEdmStructuralProperty^ structuralProperty,
EntityInstanceContext^ entityInstanceContext
)
abstract CreateStructuralProperty :
structuralProperty:IEdmStructuralProperty *
entityInstanceContext:EntityInstanceContext -> ODataProperty
override CreateStructuralProperty :
structuralProperty:IEdmStructuralProperty *
entityInstanceContext:EntityInstanceContext -> ODataProperty
Public Overridable Function CreateStructuralProperty (
structuralProperty As IEdmStructuralProperty,
entityInstanceContext As EntityInstanceContext
) As ODataProperty
Parameters
structuralProperty
Type: Microsoft.OData.Edm.IEdmStructuralPropertyThe EDM structural property being written.
entityInstanceContext
Type: System.Web.OData.EntityInstanceContextThe context for the entity instance being written.
Return Value
Type: Microsoft.OData.Core.ODataProperty
The ODataProperty to write.
See Also
ODataEntityTypeSerializer Class
System.Web.OData.Formatter.Serialization Namespace
Return to top