共用方式為


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,表示沒有相符專案。

適用於