LinkGenerationHelpers.GenerateFunctionLink 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.
Overloads
GenerateFunctionLink(ResourceContext, IEdmOperation) |
Generates an function link following the OData URL conventions for the function |
GenerateFunctionLink(ResourceSetContext, IEdmOperation) |
Generates a function link following the OData URL conventions for the function |
GenerateFunctionLink(ResourceContext, IEdmOperation)
Generates an function link following the OData URL conventions for the function function
and bound to the entity
represented by resourceContext
.
public static Uri GenerateFunctionLink (this Microsoft.AspNet.OData.ResourceContext resourceContext, Microsoft.OData.Edm.IEdmOperation function);
static member GenerateFunctionLink : Microsoft.AspNet.OData.ResourceContext * Microsoft.OData.Edm.IEdmOperation -> Uri
<Extension()>
Public Function GenerateFunctionLink (resourceContext As ResourceContext, function As IEdmOperation) As Uri
Parameters
- resourceContext
- ResourceContext
The ResourceContext representing the entity for which the function link needs to be generated.
- function
- IEdmOperation
The function for which the function link needs to be generated.
Returns
The generated function link following OData URL conventions.
Applies to
GenerateFunctionLink(ResourceSetContext, IEdmOperation)
Generates a function link following the OData URL conventions for the function function
and bound to the
collection of entity represented by resourceSetContext
.
public static Uri GenerateFunctionLink (this Microsoft.AspNet.OData.ResourceSetContext resourceSetContext, Microsoft.OData.Edm.IEdmOperation function);
static member GenerateFunctionLink : Microsoft.AspNet.OData.ResourceSetContext * Microsoft.OData.Edm.IEdmOperation -> Uri
<Extension()>
Public Function GenerateFunctionLink (resourceSetContext As ResourceSetContext, function As IEdmOperation) As Uri
Parameters
- resourceSetContext
- ResourceSetContext
The ResourceSetContext representing the feed for which the function link needs to be generated.
- function
- IEdmOperation
The function for which the function link needs to be generated.
Returns
The generated function link following OData URL conventions.