Partager via


AttributeRoutingConvention.ShouldMapController Method (HttpControllerDescriptor)

 

Specifies whether OData route attributes on this controller should be mapped.

Namespace:   System.Web.OData.Routing.Conventions
Assembly:  System.Web.OData (in System.Web.OData.dll)

Syntax

public virtual bool ShouldMapController(
    HttpControllerDescriptor controller
)
public:
virtual bool ShouldMapController(
    HttpControllerDescriptor^ controller
)
abstract ShouldMapController : 
        controller:HttpControllerDescriptor -> bool
override ShouldMapController : 
        controller:HttpControllerDescriptor -> bool
Public Overridable Function ShouldMapController (
    controller As HttpControllerDescriptor
) As Boolean

Parameters

Return Value

Type: System.Boolean

true if this controller should be included in the map; false otherwise.

See Also

AttributeRoutingConvention Class
System.Web.OData.Routing.Conventions Namespace

Return to top