C# Class NuGetGallery.RouteCollectionExtensions

Show file Open project: chocolatey/chocolatey.org

Public Methods

Method Description
MapRouteSeo ( this routes, string name, string url ) : Route

Maps the specified URL route using a lowercase URL. Does not change casing in the querystring, if any.

MapRouteSeo ( this routes, string name, string url, object defaults ) : Route

Maps the specified URL route using a lowercase URL and sets default route values. Does not change casing in the querystring, if any.

MapRouteSeo ( this routes, string name, string url, object defaults, object constraints ) : Route

Maps the specified URL route using a lowercase URL and sets default route values and constraints. Does not change casing in the querystring, if any.

MapRouteSeo ( this routes, string name, string url, object defaults, object constraints, string namespaces ) : Route

Maps the specified URL route and sets default route values, constraints, and namespaces. Does not change casing in the querystring, if any.

MapRouteSeo ( this routes, string name, string url, object defaults, string namespaces ) : Route

Maps the specified URL route using a lowercase URL and sets default route values and namespaces. Does not change casing in the querystring, if any.

MapRouteSeo ( this routes, string name, string url, string namespaces ) : Route

Maps the specified URL route using a lowercase URL and sets the namespaces. Does not change casing in the querystring, if any.

Method Details

MapRouteSeo() public static method

Maps the specified URL route using a lowercase URL. Does not change casing in the querystring, if any.
public static MapRouteSeo ( this routes, string name, string url ) : Route
routes this A collection of routes for the application.
name string The name of the route to map.
url string The URL pattern for the route.
return System.Web.Routing.Route

MapRouteSeo() public static method

Maps the specified URL route using a lowercase URL and sets default route values. Does not change casing in the querystring, if any.
public static MapRouteSeo ( this routes, string name, string url, object defaults ) : Route
routes this A collection of routes for the application.
name string The name of the route to map.
url string The URL pattern for the route.
defaults object An object that contains default route values.
return System.Web.Routing.Route

MapRouteSeo() public static method

Maps the specified URL route using a lowercase URL and sets default route values and constraints. Does not change casing in the querystring, if any.
public static MapRouteSeo ( this routes, string name, string url, object defaults, object constraints ) : Route
routes this A collection of routes for the application.
name string The name of the route to map.
url string The URL pattern for the route.
defaults object An object that contains default route values.
constraints object A set of expressions that specify valid values for a URL parameter.
return System.Web.Routing.Route

MapRouteSeo() public static method

Maps the specified URL route and sets default route values, constraints, and namespaces. Does not change casing in the querystring, if any.
public static MapRouteSeo ( this routes, string name, string url, object defaults, object constraints, string namespaces ) : Route
routes this A collection of routes for the application.
name string The name of the route to map.
url string The URL pattern for the route.
defaults object An object that contains default route values.
constraints object A set of expressions that specify valid values for a URL parameter.
namespaces string A set of namespaces for the application.
return System.Web.Routing.Route

MapRouteSeo() public static method

Maps the specified URL route using a lowercase URL and sets default route values and namespaces. Does not change casing in the querystring, if any.
public static MapRouteSeo ( this routes, string name, string url, object defaults, string namespaces ) : Route
routes this A collection of routes for the application.
name string The name of the route to map.
url string The URL pattern for the route.
defaults object An object that contains default route values.
namespaces string A set of namespaces for the application.
return System.Web.Routing.Route

MapRouteSeo() public static method

Maps the specified URL route using a lowercase URL and sets the namespaces. Does not change casing in the querystring, if any.
public static MapRouteSeo ( this routes, string name, string url, string namespaces ) : Route
routes this A collection of routes for the application.
name string The name of the route to map.
url string The URL pattern for the route.
namespaces string A set of namespaces for the application.
return System.Web.Routing.Route