Share via


SelfLinkBuilder<T> Constructor

Constructs a new instance of SelfLinkBuilder<T>.

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

Syntax

'Declaration
Public Sub New ( _
    linkFactory As Func(Of EntityInstanceContext, T), _
    followsConventions As Boolean _
)
'Usage
Dim linkFactory As Func(Of EntityInstanceContext, T)
Dim followsConventions As Boolean 

Dim instance As New SelfLinkBuilder(linkFactory, _
    followsConventions)
public SelfLinkBuilder(
    Func<EntityInstanceContext, T> linkFactory,
    bool followsConventions
)
public:
SelfLinkBuilder(
    Func<EntityInstanceContext^, T>^ linkFactory, 
    bool followsConventions
)
new : 
        linkFactory:Func<EntityInstanceContext, 'T> * 
        followsConventions:bool -> SelfLinkBuilder
public function SelfLinkBuilder(
    linkFactory : Func<EntityInstanceContext, T>, 
    followsConventions : boolean
)

Parameters

  • followsConventions
    Type: System.Boolean
    Whether the factory follows odata conventions for link generation.

See Also

Reference

SelfLinkBuilder<T> Class

System.Web.Http.OData.Builder Namespace