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