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
navigationProperty
Type: Microsoft.Data.Edm.IEdmNavigationPropertyThe navigation property for which the navigation link is being created.
entityInstanceContext
Type: System.Web.Http.OData.EntityInstanceContextThe context for the entity instance being written.
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