ODataEntityTypeSerializer.CreateODataAction Method (IEdmAction, EntityInstanceContext)
Creates an ODataAction to be written for the given action and the entity instance.
Namespace: System.Web.OData.Formatter.Serialization
Assembly: System.Web.OData (in System.Web.OData.dll)
Syntax
public virtual ODataAction CreateODataAction(
IEdmAction action,
EntityInstanceContext entityInstanceContext
)
public:
virtual ODataAction^ CreateODataAction(
IEdmAction^ action,
EntityInstanceContext^ entityInstanceContext
)
abstract CreateODataAction :
action:IEdmAction *
entityInstanceContext:EntityInstanceContext -> ODataAction
override CreateODataAction :
action:IEdmAction *
entityInstanceContext:EntityInstanceContext -> ODataAction
Public Overridable Function CreateODataAction (
action As IEdmAction,
entityInstanceContext As EntityInstanceContext
) As ODataAction
Parameters
action
Type: Microsoft.OData.Edm.IEdmActionThe OData action.
entityInstanceContext
Type: System.Web.OData.EntityInstanceContextThe context for the entity instance being written.
Return Value
Type: Microsoft.OData.Core.ODataAction
The created action or null if the action should not be written.
See Also
ODataEntityTypeSerializer Class
System.Web.OData.Formatter.Serialization Namespace
Return to top