Share via


ODataResourceSerializer.CreateNavigationLink Method

Definition

Creates the ODataNestedResourceInfo to be written while writing this entity.

public virtual Microsoft.OData.ODataNestedResourceInfo CreateNavigationLink (Microsoft.OData.Edm.IEdmNavigationProperty navigationProperty, Microsoft.AspNet.OData.ResourceContext resourceContext);
abstract member CreateNavigationLink : Microsoft.OData.Edm.IEdmNavigationProperty * Microsoft.AspNet.OData.ResourceContext -> Microsoft.OData.ODataNestedResourceInfo
override this.CreateNavigationLink : Microsoft.OData.Edm.IEdmNavigationProperty * Microsoft.AspNet.OData.ResourceContext -> Microsoft.OData.ODataNestedResourceInfo
Public Overridable Function CreateNavigationLink (navigationProperty As IEdmNavigationProperty, resourceContext As ResourceContext) As ODataNestedResourceInfo

Parameters

navigationProperty
IEdmNavigationProperty

The navigation property for which the navigation link is being created.

resourceContext
ResourceContext

The context for the entity instance being written.

Returns

The navigation link to be written.

Applies to