Export (0) Print
Expand All

PageRouteHandler.VirtualPath Property

.NET Framework 4.6 and 4.5

Gets the virtual path of the Web page that is associated with this route.

Namespace:  System.Web.Routing
Assembly:  System.Web (in System.Web.dll)

public string VirtualPath { get; private set; }

Property Value

Type: System.String
The URL of the Web page, before substitutions have been applied for any replacement parameters.

You set the VirtualPath property in the PageRouteHandler.PageRouteHandler constructor or in the PageRouteHandler.PageRouteHandler constructor.

.NET Framework

Supported in: 4.6, 4.5, 4
Show:
© 2015 Microsoft