VirtualPathContext 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
VirtualPathContext(HttpContext, RouteValueDictionary, RouteValueDictionary)
- Source:
- VirtualPathContext.cs
- Source:
- VirtualPathContext.cs
- Source:
- 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)
- Source:
- VirtualPathContext.cs
- Source:
- VirtualPathContext.cs
- Source:
- 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
用于生成虚拟路径的路由的名称。