VirtualPathContext 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
VirtualPathContext(HttpContext, RouteValueDictionary, RouteValueDictionary)
建立 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 的新執行個體。
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
要用於虛擬路徑產生之路由的名稱。