ODataResourceSerializer.CreateODataFunction 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 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.