LinkGenerationHelpers.GenerateSelfLink(ResourceContext, Boolean) 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.
Generates a self link following the OData URL conventions for the entity represented by resourceContext
.
public static Uri GenerateSelfLink (this Microsoft.AspNet.OData.ResourceContext resourceContext, bool includeCast);
static member GenerateSelfLink : Microsoft.AspNet.OData.ResourceContext * bool -> Uri
<Extension()>
Public Function GenerateSelfLink (resourceContext As ResourceContext, includeCast As Boolean) As Uri
Parameters
- resourceContext
- ResourceContext
The ResourceContext representing the entity for which the self link needs to be generated.
- includeCast
- Boolean
Represents whether the generated link should have a cast segment representing a type cast.
Returns
The self link following the OData URL conventions.