Share via


LinkGenerationHelpers.GenerateFunctionLink Method

Definition

Overloads

GenerateFunctionLink(ResourceContext, IEdmOperation)

Generates an function link following the OData URL conventions for the function function and bound to the entity represented by resourceContext.

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.

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

Uri

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

Uri

The generated function link following OData URL conventions.

Applies to