Share via


ODataResourceSerializer.CreateODataFunction Method

Definition

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

public virtual Microsoft.OData.ODataFunction CreateODataFunction (Microsoft.OData.Edm.IEdmFunction function, Microsoft.AspNet.OData.ResourceContext resourceContext);
abstract member CreateODataFunction : Microsoft.OData.Edm.IEdmFunction * Microsoft.AspNet.OData.ResourceContext -> Microsoft.OData.ODataFunction
override this.CreateODataFunction : Microsoft.OData.Edm.IEdmFunction * Microsoft.AspNet.OData.ResourceContext -> Microsoft.OData.ODataFunction
Public Overridable Function CreateODataFunction (function As IEdmFunction, resourceContext As ResourceContext) As ODataFunction

Parameters

function
IEdmFunction

The OData function.

resourceContext
ResourceContext

The context for the entity instance being written.

Returns

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

Applies to