Share via


ActionLinkBuilder Class

 

ActionLinkBuilder can be used to annotate an Action. This is how formatters create links to invoke bound actions.

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

Inheritance Hierarchy

System.Object
  System.Web.Http.OData.Builder.ActionLinkBuilder

Syntax

public class ActionLinkBuilder
public ref class ActionLinkBuilder 
type ActionLinkBuilder = class end
Public Class ActionLinkBuilder

Constructors

Name Description
System_CAPS_pubmethod ActionLinkBuilder(Func<EntityInstanceContext, Uri>, Boolean)

Create a new ActionLinkBuilder based on an actionLinkFactory.

Remarks

If the action is not available the actionLinkFactory delegate should return NULL.

Properties

Name Description
System_CAPS_pubproperty FollowsConventions

Gets a boolean indicating whether the link factory follows OData conventions or not.

Methods

Name Description
System_CAPS_pubmethod BuildActionLink(EntityInstanceContext)

Builds the action link for the given entity.

System_CAPS_pubmethodSystem_CAPS_static CreateActionLinkFactory(Func<EntityInstanceContext, Uri>, Func<EntityInstanceContext, Boolean>)

Creates an action link factory that builds an action link, but only when appropriate based on the expensiveAvailabilityCheck, and whether expensive checks should be made, which is deduced by looking at the EntityInstanceContext.SkipExpensiveActionAvailabilityChecks property.

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

System.Web.Http.OData.Builder Namespace

Return to top