RazorPagesEndpointRouteBuilderExtensions.MapDynamicPageRoute 方法

定义

重载

MapDynamicPageRoute<TTransformer>(IEndpointRouteBuilder, String)

向 添加专用 RouteEndpoint 的 , IEndpointRouteBuilder 以尝试使用 生成的 TTransformer路由值选择页面。

MapDynamicPageRoute<TTransformer>(IEndpointRouteBuilder, String, Object)

向 添加专用 RouteEndpoint 的 , IEndpointRouteBuilder 以尝试使用 生成的 TTransformer路由值选择页面。

MapDynamicPageRoute<TTransformer>(IEndpointRouteBuilder, String, Object, Int32)

向 添加专用 RouteEndpoint 的 , IEndpointRouteBuilder 以尝试使用 生成的 TTransformer路由值选择页面。

MapDynamicPageRoute<TTransformer>(IEndpointRouteBuilder, String)

Source:
RazorPagesEndpointRouteBuilderExtensions.cs

向 添加专用 RouteEndpoint 的 , IEndpointRouteBuilder 以尝试使用 生成的 TTransformer路由值选择页面。

public:
generic <typename TTransformer>
 where TTransformer : Microsoft::AspNetCore::Mvc::Routing::DynamicRouteValueTransformer[System::Runtime::CompilerServices::Extension]
 static void MapDynamicPageRoute(Microsoft::AspNetCore::Routing::IEndpointRouteBuilder ^ endpoints, System::String ^ pattern);
public static void MapDynamicPageRoute<TTransformer> (this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern) where TTransformer : Microsoft.AspNetCore.Mvc.Routing.DynamicRouteValueTransformer;
static member MapDynamicPageRoute : Microsoft.AspNetCore.Routing.IEndpointRouteBuilder * string -> unit (requires 'ransformer :> Microsoft.AspNetCore.Mvc.Routing.DynamicRouteValueTransformer)
<Extension()>
Public Sub MapDynamicPageRoute(Of TTransformer As DynamicRouteValueTransformer) (endpoints As IEndpointRouteBuilder, pattern As String)

类型参数

TTransformer

DynamicRouteValueTransformer的类型。

参数

endpoints
IEndpointRouteBuilder

IEndpointRouteBuilder要向其添加路由的 。

pattern
String

路由的 URL 模式。

注解

此方法允许注册 组合在一起的 RouteEndpointDynamicRouteValueTransformer 以使用自定义逻辑动态选择页面。

将从依赖项注入容器中检索 的 TTransformer 实例。 在 中ConfigureServices注册TTransformer所需的服务生存期。

适用于

MapDynamicPageRoute<TTransformer>(IEndpointRouteBuilder, String, Object)

Source:
RazorPagesEndpointRouteBuilderExtensions.cs

向 添加专用 RouteEndpoint 的 , IEndpointRouteBuilder 以尝试使用 生成的 TTransformer路由值选择页面。

public:
generic <typename TTransformer>
 where TTransformer : Microsoft::AspNetCore::Mvc::Routing::DynamicRouteValueTransformer[System::Runtime::CompilerServices::Extension]
 static void MapDynamicPageRoute(Microsoft::AspNetCore::Routing::IEndpointRouteBuilder ^ endpoints, System::String ^ pattern, System::Object ^ state);
public static void MapDynamicPageRoute<TTransformer> (this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern, object state) where TTransformer : Microsoft.AspNetCore.Mvc.Routing.DynamicRouteValueTransformer;
public static void MapDynamicPageRoute<TTransformer> (this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern, object? state) where TTransformer : Microsoft.AspNetCore.Mvc.Routing.DynamicRouteValueTransformer;
static member MapDynamicPageRoute : Microsoft.AspNetCore.Routing.IEndpointRouteBuilder * string * obj -> unit (requires 'ransformer :> Microsoft.AspNetCore.Mvc.Routing.DynamicRouteValueTransformer)
<Extension()>
Public Sub MapDynamicPageRoute(Of TTransformer As DynamicRouteValueTransformer) (endpoints As IEndpointRouteBuilder, pattern As String, state As Object)

类型参数

TTransformer

DynamicRouteValueTransformer的类型。

参数

endpoints
IEndpointRouteBuilder

IEndpointRouteBuilder要向其添加路由的 。

pattern
String

路由的 URL 模式。

state
Object

要提供给 TTransformer 实例的状态对象。

注解

此方法允许注册 组合在一起的 RouteEndpointDynamicRouteValueTransformer 以使用自定义逻辑动态选择页面。

将从依赖项注入容器中检索 的 TTransformer 实例。 在 中ConfigureServices注册TTransformer所需的服务生存期。

适用于

MapDynamicPageRoute<TTransformer>(IEndpointRouteBuilder, String, Object, Int32)

Source:
RazorPagesEndpointRouteBuilderExtensions.cs

向 添加专用 RouteEndpoint 的 , IEndpointRouteBuilder 以尝试使用 生成的 TTransformer路由值选择页面。

public:
generic <typename TTransformer>
 where TTransformer : Microsoft::AspNetCore::Mvc::Routing::DynamicRouteValueTransformer[System::Runtime::CompilerServices::Extension]
 static void MapDynamicPageRoute(Microsoft::AspNetCore::Routing::IEndpointRouteBuilder ^ endpoints, System::String ^ pattern, System::Object ^ state, int order);
public static void MapDynamicPageRoute<TTransformer> (this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern, object state, int order) where TTransformer : Microsoft.AspNetCore.Mvc.Routing.DynamicRouteValueTransformer;
static member MapDynamicPageRoute : Microsoft.AspNetCore.Routing.IEndpointRouteBuilder * string * obj * int -> unit (requires 'ransformer :> Microsoft.AspNetCore.Mvc.Routing.DynamicRouteValueTransformer)
<Extension()>
Public Sub MapDynamicPageRoute(Of TTransformer As DynamicRouteValueTransformer) (endpoints As IEndpointRouteBuilder, pattern As String, state As Object, order As Integer)

类型参数

TTransformer

DynamicRouteValueTransformer的类型。

参数

endpoints
IEndpointRouteBuilder

IEndpointRouteBuilder要向其添加路由的 。

pattern
String

路由的 URL 模式。

state
Object

要提供给 TTransformer 实例的状态对象。

order
Int32

动态路由的匹配顺序。

注解

此方法允许注册 组合在一起的 RouteEndpointDynamicRouteValueTransformer 以使用自定义逻辑动态选择页面。

将从依赖项注入容器中检索 的 TTransformer 实例。 在 中ConfigureServices注册TTransformer所需的服务生存期。

适用于