Method Build
Build(string)
Builds a route with no parameters from the specified string.
Declaration
public static RouteBuilder Build(string route)
Parameters
Type |
Name |
Description |
string |
route |
|
Returns
Build<T>(Func<T, InterpolatedRouteHandler>, string)
Builds a route with a single parameter from the specified route function that returns the interpolated route.
Declaration
public static RouteBuilder<T> Build<T>(Func<T, InterpolatedRouteHandler> routeFunc, string routeFuncExpr = "") where T : notnull, IParsable<T>, IEquatable<T>
Parameters
Returns
Type Parameters
Build<T1, T2>(Func<T1, T2, InterpolatedRouteHandler>, string)
Builds a route with two parameters from the specified route function that returns the interpolated route.
Declaration
public static RouteBuilder<(T1 Param1, T2 Param2)> Build<T1, T2>(Func<T1, T2, InterpolatedRouteHandler> routeFunc, string routeFuncExpr = "") where T1 : notnull, IParsable<T1>, IEquatable<T1> where T2 : notnull, IParsable<T2>, IEquatable<T2>
Parameters
Returns
Type Parameters
Build<T1, T2, T3>(Func<T1, T2, T3, InterpolatedRouteHandler>, string)
Builds a route with three parameters from the specified route function that returns the interpolated route.
Declaration
public static RouteBuilder<(T1 Param1, T2 Param2, T3 Param3)> Build<T1, T2, T3>(Func<T1, T2, T3, InterpolatedRouteHandler> routeFunc, string routeFuncExpr = "") where T1 : notnull, IParsable<T1>, IEquatable<T1> where T2 : notnull, IParsable<T2>, IEquatable<T2> where T3 : notnull, IParsable<T3>, IEquatable<T3>
Parameters
Returns
Type Parameters
Name |
Description |
T1 |
|
T2 |
|
T3 |
|
Build<T1, T2, T3, T4>(Func<T1, T2, T3, T4, InterpolatedRouteHandler>, string)
Builds a route with four parameters from the specified route function that returns the interpolated route.
Declaration
public static RouteBuilder<(T1 Param1, T2 Param2, T3 Param3, T4 Param4)> Build<T1, T2, T3, T4>(Func<T1, T2, T3, T4, InterpolatedRouteHandler> routeFunc, string routeFuncExpr = "") where T1 : notnull, IParsable<T1>, IEquatable<T1> where T2 : notnull, IParsable<T2>, IEquatable<T2> where T3 : notnull, IParsable<T3>, IEquatable<T3> where T4 : notnull, IParsable<T4>, IEquatable<T4>
Parameters
Returns
Type Parameters
Name |
Description |
T1 |
|
T2 |
|
T3 |
|
T4 |
|