RouteCollection.GetVirtualPath Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns information about the URL path that is associated with the route.
Overloads
GetVirtualPath(RequestContext, RouteValueDictionary) |
Returns information about the URL path that is associated with the route, given the specified context and parameter values. |
GetVirtualPath(RequestContext, String, RouteValueDictionary) |
Returns information about the URL path that is associated with the named route, given the specified context, route name, and parameter values. |
GetVirtualPath(RequestContext, RouteValueDictionary)
Returns information about the URL path that is associated with the route, given the specified context and parameter values.
public:
System::Web::Routing::VirtualPathData ^ GetVirtualPath(System::Web::Routing::RequestContext ^ requestContext, System::Web::Routing::RouteValueDictionary ^ values);
public System.Web.Routing.VirtualPathData GetVirtualPath (System.Web.Routing.RequestContext requestContext, System.Web.Routing.RouteValueDictionary values);
member this.GetVirtualPath : System.Web.Routing.RequestContext * System.Web.Routing.RouteValueDictionary -> System.Web.Routing.VirtualPathData
Public Function GetVirtualPath (requestContext As RequestContext, values As RouteValueDictionary) As VirtualPathData
Parameters
- requestContext
- RequestContext
An object that encapsulates information about the requested route.
- values
- RouteValueDictionary
An object that contains the parameters for a route.
Returns
An object that contains information about the URL path that is associated with the route.
See also
Applies to
GetVirtualPath(RequestContext, String, RouteValueDictionary)
Returns information about the URL path that is associated with the named route, given the specified context, route name, and parameter values.
public:
System::Web::Routing::VirtualPathData ^ GetVirtualPath(System::Web::Routing::RequestContext ^ requestContext, System::String ^ name, System::Web::Routing::RouteValueDictionary ^ values);
public System.Web.Routing.VirtualPathData GetVirtualPath (System.Web.Routing.RequestContext requestContext, string name, System.Web.Routing.RouteValueDictionary values);
member this.GetVirtualPath : System.Web.Routing.RequestContext * string * System.Web.Routing.RouteValueDictionary -> System.Web.Routing.VirtualPathData
Public Function GetVirtualPath (requestContext As RequestContext, name As String, values As RouteValueDictionary) As VirtualPathData
Parameters
- requestContext
- RequestContext
An object that encapsulates information about the requested route.
- name
- String
The name of the route to use when information about the URL path is retrieved.
- values
- RouteValueDictionary
An object that contains the parameters for a route.
Returns
An object that contains information about the URL path that is associated with the route.
Exceptions
No route could be found that has the name specified in the name
parameter.
See also
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기