ActionConfiguration.HasActionLink Method
Register a factory that creates actions links.
Namespace: System.Web.Http.OData.Builder
Assembly: System.Web.Http.OData (in System.Web.Http.OData.dll)
Syntax
'Declaration
Public Function HasActionLink ( _
actionLinkFactory As Func(Of EntityInstanceContext, Uri), _
followsConventions As Boolean _
) As ActionConfiguration
'Usage
Dim instance As ActionConfiguration
Dim actionLinkFactory As Func(Of EntityInstanceContext, Uri)
Dim followsConventions As Boolean
Dim returnValue As ActionConfiguration
returnValue = instance.HasActionLink(actionLinkFactory, _
followsConventions)
public ActionConfiguration HasActionLink(
Func<EntityInstanceContext, Uri> actionLinkFactory,
bool followsConventions
)
public:
ActionConfiguration^ HasActionLink(
Func<EntityInstanceContext^, Uri^>^ actionLinkFactory,
bool followsConventions
)
member HasActionLink :
actionLinkFactory:Func<EntityInstanceContext, Uri> *
followsConventions:bool -> ActionConfiguration
public function HasActionLink(
actionLinkFactory : Func<EntityInstanceContext, Uri>,
followsConventions : boolean
) : ActionConfiguration
Parameters
- actionLinkFactory
Type: System.Func<EntityInstanceContext, Uri>
The actionLinkFactory this ActionLinkBuilder should use when building links.
- followsConventions
Type: System.Boolean
A value indicating whether the action link factory generates links that follow OData conventions.
Return Value
Type: System.Web.Http.OData.Builder.ActionConfiguration
A factory that crates actions links.