Share via


ODataResourceSerializer.CreateODataAction(IEdmAction, ResourceContext) Method

Definition

Creates an ODataAction to be written for the given action and the entity instance.

public virtual Microsoft.OData.ODataAction CreateODataAction (Microsoft.OData.Edm.IEdmAction action, Microsoft.AspNet.OData.ResourceContext resourceContext);
abstract member CreateODataAction : Microsoft.OData.Edm.IEdmAction * Microsoft.AspNet.OData.ResourceContext -> Microsoft.OData.ODataAction
override this.CreateODataAction : Microsoft.OData.Edm.IEdmAction * Microsoft.AspNet.OData.ResourceContext -> Microsoft.OData.ODataAction
Public Overridable Function CreateODataAction (action As IEdmAction, resourceContext As ResourceContext) As ODataAction

Parameters

action
IEdmAction

The OData action.

resourceContext
ResourceContext

The context for the entity instance being written.

Returns

The created action or null if the action should not be written.

Applies to