LinkGenerationHelpers.GenerateFunctionLink Method (EntityInstanceContext, IEdmOperation)
Generates an function link following the OData URL conventions for the function function and bound to the entity represented by entityContext.
Namespace: System.Web.OData.Builder
Assembly: System.Web.OData (in System.Web.OData.dll)
Syntax
public static Uri GenerateFunctionLink(
this EntityInstanceContext entityContext,
IEdmOperation function
)
public:
[ExtensionAttribute]
static Uri^ GenerateFunctionLink(
EntityInstanceContext^ entityContext,
IEdmOperation^ function
)
static member GenerateFunctionLink :
entityContext:EntityInstanceContext *
function:IEdmOperation -> Uri
<ExtensionAttribute>
Public Shared Function GenerateFunctionLink (
entityContext As EntityInstanceContext,
function As IEdmOperation
) As Uri
Parameters
entityContext
Type: System.Web.OData.EntityInstanceContextThe EntityInstanceContext representing the entity for which the function link needs to be generated.
function
Type: Microsoft.OData.Edm.IEdmOperationThe function for which the function link needs to be generated.
Return Value
Type: System.Uri
The generated function link following OData URL conventions.
See Also
LinkGenerationHelpers Class
System.Web.OData.Builder Namespace
Return to top