Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Determines whether the controller should be considered for ApiDescriptions generation. Called when initializing the ApiDescriptions.
Namespace: System.Web.Http.Description
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
Public Overridable Function ShouldExploreController ( _
controllerVariableValue As String, _
controllerDescriptor As HttpControllerDescriptor, _
route As IHttpRoute _
) As Boolean
'Usage
Dim instance As ApiExplorer
Dim controllerVariableValue As String
Dim controllerDescriptor As HttpControllerDescriptor
Dim route As IHttpRoute
Dim returnValue As Boolean
returnValue = instance.ShouldExploreController(controllerVariableValue, _
controllerDescriptor, route)
public virtual bool ShouldExploreController(
string controllerVariableValue,
HttpControllerDescriptor controllerDescriptor,
IHttpRoute route
)
public:
virtual bool ShouldExploreController(
String^ controllerVariableValue,
HttpControllerDescriptor^ controllerDescriptor,
IHttpRoute^ route
)
abstract ShouldExploreController :
controllerVariableValue:string *
controllerDescriptor:HttpControllerDescriptor *
route:IHttpRoute -> bool
override ShouldExploreController :
controllerVariableValue:string *
controllerDescriptor:HttpControllerDescriptor *
route:IHttpRoute -> bool
public function ShouldExploreController(
controllerVariableValue : String,
controllerDescriptor : HttpControllerDescriptor,
route : IHttpRoute
) : boolean
Parameters
controllerVariableValue
Type: System.StringThe controller variable value from the route.
controllerDescriptor
Type: System.Web.Http.Controllers.HttpControllerDescriptorThe controller descriptor.
route
Type: System.Web.Http.Routing.IHttpRouteThe route.
Return Value
Type: System.Boolean
true if the controller should be considered for ApiDescriptions generation, false otherwise.