ODataResourceSerializer.CreateODataAction(IEdmAction, ResourceContext) 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 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.