C# Класс Nancy.RouteHelpers.Route

Показать файл Открыть проект

Открытые методы

Метод Описание
And ( ) : RouteParameters

Seperates route segments by adding a '/' to the route

AnyIntAtLeastOnce ( string NamedGroup ) : RouteParameters

Creates a route that expects at least one integer, for example, /products/123

AnyIntAtLeastOnce ( string NamedGroup, int lengthStart, int lengthEnd ) : RouteParameters

Creates a route that expects at least one integer, for example, /products/123

AnyIntOptional ( string NamedGroup ) : RouteParameters

Creates a route that will accept an int but the URL doesn't always have to contain one, for example, /products OR /products/123. NOTE: Do not use a / in your route before using this method as one is included

AnyStringAtLeastOnce ( string NamedGroup ) : RouteParameters

Creates a route that expects at least one string, for example, /mac

AnyStringAtLeastOnce ( string NamedGroup, int lengthStart, int lengthEnd ) : RouteParameters

Creates a route that expects at least one string, for example, /mac

AnyStringOptional ( string NamedGroup ) : RouteParameters

Creates a route that will accept a string but the URL doesn't always have to contain one, for example, /products OR /products/mac. NOTE: Do not use a / in your route before using this method as one is included

Exact ( string NamedGroup, string Exact ) : RouteParameters

Creates a route that expects a certain pattern

Root ( ) : RouteParameters

Starts route segments by adding a '/' to the route

Описание методов

And() публичный статический Метод

Seperates route segments by adding a '/' to the route
public static And ( ) : RouteParameters
Результат RouteParameters

AnyIntAtLeastOnce() публичный статический Метод

Creates a route that expects at least one integer, for example, /products/123
public static AnyIntAtLeastOnce ( string NamedGroup ) : RouteParameters
NamedGroup string The name of the parameter in the route
Результат RouteParameters

AnyIntAtLeastOnce() публичный статический Метод

Creates a route that expects at least one integer, for example, /products/123
public static AnyIntAtLeastOnce ( string NamedGroup, int lengthStart, int lengthEnd ) : RouteParameters
NamedGroup string The name of the parameter in the route
lengthStart int The minimum number of integers in the route
lengthEnd int The maximum number of integers in the route
Результат RouteParameters

AnyIntOptional() публичный статический Метод

Creates a route that will accept an int but the URL doesn't always have to contain one, for example, /products OR /products/123. NOTE: Do not use a / in your route before using this method as one is included
public static AnyIntOptional ( string NamedGroup ) : RouteParameters
NamedGroup string The name of the parameter in the route
Результат RouteParameters

AnyStringAtLeastOnce() публичный статический Метод

Creates a route that expects at least one string, for example, /mac
public static AnyStringAtLeastOnce ( string NamedGroup ) : RouteParameters
NamedGroup string The name of the parameter in the route
Результат RouteParameters

AnyStringAtLeastOnce() публичный статический Метод

Creates a route that expects at least one string, for example, /mac
public static AnyStringAtLeastOnce ( string NamedGroup, int lengthStart, int lengthEnd ) : RouteParameters
NamedGroup string The name of the parameter in the route
lengthStart int The minimum number of characters in the route
lengthEnd int The minimum number of characters in the route
Результат RouteParameters

AnyStringOptional() публичный статический Метод

Creates a route that will accept a string but the URL doesn't always have to contain one, for example, /products OR /products/mac. NOTE: Do not use a / in your route before using this method as one is included
public static AnyStringOptional ( string NamedGroup ) : RouteParameters
NamedGroup string The name of the parameter in the route
Результат RouteParameters

Exact() публичный статический Метод

Creates a route that expects a certain pattern
public static Exact ( string NamedGroup, string Exact ) : RouteParameters
NamedGroup string The name of the parameter in the route
Exact string The exact pattern in the route
Результат RouteParameters

Root() публичный статический Метод

Starts route segments by adding a '/' to the route
public static Root ( ) : RouteParameters
Результат RouteParameters