Share via


ODataEntityTypeSerializer.CreateNavigationLink Method (IEdmNavigationProperty, EntityInstanceContext)

 

Creates the ODataNavigationLink to be written while writing this entity.

Namespace:   System.Web.Http.OData.Formatter.Serialization
Assembly:  System.Web.Http.OData (in System.Web.Http.OData.dll)

Syntax

public virtual ODataNavigationLink CreateNavigationLink(
    IEdmNavigationProperty navigationProperty,
    EntityInstanceContext entityInstanceContext
)
public:
virtual ODataNavigationLink^ CreateNavigationLink(
    IEdmNavigationProperty^ navigationProperty,
    EntityInstanceContext^ entityInstanceContext
)
abstract CreateNavigationLink : 
        navigationProperty:IEdmNavigationProperty *
        entityInstanceContext:EntityInstanceContext -> ODataNavigationLink
override CreateNavigationLink : 
        navigationProperty:IEdmNavigationProperty *
        entityInstanceContext:EntityInstanceContext -> ODataNavigationLink
Public Overridable Function CreateNavigationLink (
    navigationProperty As IEdmNavigationProperty,
    entityInstanceContext As EntityInstanceContext
) As ODataNavigationLink

Parameters

Return Value

Type: Microsoft.Data.OData.ODataNavigationLink

The navigation link to be written.

See Also

ODataEntityTypeSerializer Class
System.Web.Http.OData.Formatter.Serialization Namespace

Return to top