共用方式為


VirtualPathContext 建構函式

定義

多載

VirtualPathContext(HttpContext, RouteValueDictionary, RouteValueDictionary)

建立 VirtualPathContext 的新執行個體。

VirtualPathContext(HttpContext, RouteValueDictionary, RouteValueDictionary, String)

建立 VirtualPathContext 的新執行個體。

VirtualPathContext(HttpContext, RouteValueDictionary, RouteValueDictionary)

來源:
VirtualPathContext.cs
來源:
VirtualPathContext.cs
來源:
VirtualPathContext.cs

建立 VirtualPathContext 的新執行個體。

public:
 VirtualPathContext(Microsoft::AspNetCore::Http::HttpContext ^ httpContext, Microsoft::AspNetCore::Routing::RouteValueDictionary ^ ambientValues, Microsoft::AspNetCore::Routing::RouteValueDictionary ^ values);
public VirtualPathContext (Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.RouteValueDictionary ambientValues, Microsoft.AspNetCore.Routing.RouteValueDictionary values);
new Microsoft.AspNetCore.Routing.VirtualPathContext : Microsoft.AspNetCore.Http.HttpContext * Microsoft.AspNetCore.Routing.RouteValueDictionary * Microsoft.AspNetCore.Routing.RouteValueDictionary -> Microsoft.AspNetCore.Routing.VirtualPathContext
Public Sub New (httpContext As HttpContext, ambientValues As RouteValueDictionary, values As RouteValueDictionary)

參數

httpContext
HttpContext

HttpContext與目前要求相關聯的 。

ambientValues
RouteValueDictionary

與目前要求相關聯的路由值集合。

values
RouteValueDictionary

為虛擬路徑產生提供的一組新值。

適用於

VirtualPathContext(HttpContext, RouteValueDictionary, RouteValueDictionary, String)

來源:
VirtualPathContext.cs
來源:
VirtualPathContext.cs
來源:
VirtualPathContext.cs

建立 VirtualPathContext 的新執行個體。

public:
 VirtualPathContext(Microsoft::AspNetCore::Http::HttpContext ^ httpContext, Microsoft::AspNetCore::Routing::RouteValueDictionary ^ ambientValues, Microsoft::AspNetCore::Routing::RouteValueDictionary ^ values, System::String ^ routeName);
public VirtualPathContext (Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.RouteValueDictionary ambientValues, Microsoft.AspNetCore.Routing.RouteValueDictionary values, string routeName);
public VirtualPathContext (Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.RouteValueDictionary ambientValues, Microsoft.AspNetCore.Routing.RouteValueDictionary values, string? routeName);
new Microsoft.AspNetCore.Routing.VirtualPathContext : Microsoft.AspNetCore.Http.HttpContext * Microsoft.AspNetCore.Routing.RouteValueDictionary * Microsoft.AspNetCore.Routing.RouteValueDictionary * string -> Microsoft.AspNetCore.Routing.VirtualPathContext
Public Sub New (httpContext As HttpContext, ambientValues As RouteValueDictionary, values As RouteValueDictionary, routeName As String)

參數

httpContext
HttpContext

HttpContext與目前要求相關聯的 。

ambientValues
RouteValueDictionary

與目前要求相關聯的路由值集合。

values
RouteValueDictionary

為虛擬路徑產生提供的一組新值。

routeName
String

要用於虛擬路徑產生之路由的名稱。

適用於