Gets the ActionLinkBuilder to be used while generating action links for the given action.
Namespace:   System.Web.OData
Assembly:  System.Web.OData (in System.Web.OData.dll)
Syntax
public static ActionLinkBuilder GetActionLinkBuilder(
    this IEdmModel model,
    IEdmAction action
)
public:
[ExtensionAttribute]
static ActionLinkBuilder^ GetActionLinkBuilder(
    IEdmModel^ model,
    IEdmAction^ action
)
static member GetActionLinkBuilder : 
        model:IEdmModel *
        action:IEdmAction -> ActionLinkBuilder
<ExtensionAttribute>
Public Shared Function GetActionLinkBuilder (
    model As IEdmModel,
    action As IEdmAction
) As ActionLinkBuilder
Parameters
- model 
 Type: Microsoft.OData.Edm.IEdmModel- The IEdmModel containing the action. 
- action 
 Type: Microsoft.OData.Edm.IEdmAction- The action for which the link builder is needed. 
Return Value
Type: System.Web.OData.Builder.ActionLinkBuilder
The ActionLinkBuilder for the given action if one is set; otherwise, a new ActionLinkBuilder that generates action links following OData URL conventions.
See Also
EdmModelExtensions Class
System.Web.OData Namespace
Return to top