DynamicRouteValueTransformer.TransformAsync 方法

定义

创建一组将用于选择操作的已转换路由值。

public:
 abstract System::Threading::Tasks::ValueTask<Microsoft::AspNetCore::Routing::RouteValueDictionary ^> TransformAsync(Microsoft::AspNetCore::Http::HttpContext ^ httpContext, Microsoft::AspNetCore::Routing::RouteValueDictionary ^ values);
public abstract System.Threading.Tasks.ValueTask<Microsoft.AspNetCore.Routing.RouteValueDictionary> TransformAsync (Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.RouteValueDictionary values);
abstract member TransformAsync : Microsoft.AspNetCore.Http.HttpContext * Microsoft.AspNetCore.Routing.RouteValueDictionary -> System.Threading.Tasks.ValueTask<Microsoft.AspNetCore.Routing.RouteValueDictionary>
Public MustOverride Function TransformAsync (httpContext As HttpContext, values As RouteValueDictionary) As ValueTask(Of RouteValueDictionary)

参数

httpContext
HttpContext

HttpContext 当前请求关联的 。

values
RouteValueDictionary

与当前匹配项关联的路由值。 实现不应修改 values

返回

返回一组新路由值,否则为 null,表示没有匹配项。

适用于