C# 클래스 Nancy.RouteHelpers.Route

파일 보기 프로젝트 열기: jchannon/Nancy.RouteHelpers

공개 메소드들

메소드 설명
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