AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

WebApiConfig..::..IsRouteRegistered Method

Checks whether a route with the specified template is already registered.

Namespace:  AdvantageCSP.API
Assembly:  AdvantageCSP.API (in AdvantageCSP.API.dll)

Syntax


public static bool IsRouteRegistered(
	HttpConfiguration config,
	string routeName
)

Parameters

config
Type: HttpConfiguration
The HTTP configuration.
routeName
Type: String
The route template to check.

Return Value

true if the route is already registered; otherwise, false.