Share via


LinkGenerationHelpers.GenerateSelfLink Method (EntityInstanceContext, Boolean)

 

Generates a self link following the OData URL conventions for the entity represented by entityContext.

Namespace:   System.Web.OData.Builder
Assembly:  System.Web.OData (in System.Web.OData.dll)

Syntax

public static Uri GenerateSelfLink(
    this EntityInstanceContext entityContext,
    bool includeCast
)
public:
[ExtensionAttribute]
static Uri^ GenerateSelfLink(
    EntityInstanceContext^ entityContext,
    bool includeCast
)
static member GenerateSelfLink : 
        entityContext:EntityInstanceContext *
        includeCast:bool -> Uri
<ExtensionAttribute>
Public Shared Function GenerateSelfLink (
    entityContext As EntityInstanceContext,
    includeCast As Boolean
) As Uri

Parameters

  • includeCast
    Type: System.Boolean

    Represents whether the generated link should have a cast segment representing a type cast.

Return Value

Type: System.Uri

The self link following the OData URL conventions.

See Also

LinkGenerationHelpers Class
System.Web.OData.Builder Namespace

Return to top