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