Generates an action link following the OData URL conventions for the action action 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 GenerateActionLink(
    this EntityInstanceContext entityContext,
    IEdmOperation action
)
public:
[ExtensionAttribute]
static Uri^ GenerateActionLink(
    EntityInstanceContext^ entityContext,
    IEdmOperation^ action
)
static member GenerateActionLink : 
        entityContext:EntityInstanceContext *
        action:IEdmOperation -> Uri
<ExtensionAttribute>
Public Shared Function GenerateActionLink (
    entityContext As EntityInstanceContext,
    action As IEdmOperation
) As Uri
Parameters
- entityContext 
 Type: System.Web.OData.EntityInstanceContext- The EntityInstanceContext representing the entity for which the action link needs to be generated. 
- action 
 Type: Microsoft.OData.Edm.IEdmOperation- The 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.OData.Builder Namespace
Return to top