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
Athugasemdir
https://aka.ms/ContentUserFeedback.
Væntanlegt: Á árinu 2024 munum við hætta með GitHub-mál sem ábendingaleið fyrir efni og skipta því út fyrir nýtt ábendingakerfi. Frekari upplýsingar er að finna hér:Senda inn og skoða endurgjöf fyrir