Share via


LinkGenerationHelpers.GenerateActionLink Method

Definition

Overloads

GenerateActionLink(ResourceContext, IEdmOperation)

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

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.

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

Uri

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

Uri

The generated action link following OData URL conventions.

Applies to