Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Generates a navigation link following the OData URL conventions for the entity represented by entityContext and the given navigation property.
Namespace:   System.Web.OData.Builder
Assembly:  System.Web.OData (in System.Web.OData.dll)
Syntax
public static Uri GenerateNavigationPropertyLink(
    this EntityInstanceContext entityContext,
    IEdmNavigationProperty navigationProperty,
    bool includeCast
)
public:
[ExtensionAttribute]
static Uri^ GenerateNavigationPropertyLink(
    EntityInstanceContext^ entityContext,
    IEdmNavigationProperty^ navigationProperty,
    bool includeCast
)
static member GenerateNavigationPropertyLink : 
        entityContext:EntityInstanceContext *
        navigationProperty:IEdmNavigationProperty *
        includeCast:bool -> Uri
<ExtensionAttribute>
Public Shared Function GenerateNavigationPropertyLink (
    entityContext As EntityInstanceContext,
    navigationProperty As IEdmNavigationProperty,
    includeCast As Boolean
) As Uri
Parameters
- entityContext 
 Type: System.Web.OData.EntityInstanceContext- The EntityInstanceContext representing the entity for which the navigation link needs to be generated. 
- navigationProperty 
 Type: Microsoft.OData.Edm.IEdmNavigationProperty- The EDM navigation property. 
- includeCast 
 Type: System.Boolean- Represents whether the generated link should have a cast segment representing a type cast. 
Return Value
Type: System.Uri
The navigation link following the OData URL conventions.
See Also
LinkGenerationHelpers Class
System.Web.OData.Builder Namespace
Return to top