PageRouteHandler Class

PageRouteHandler Class

.NET Framework (current version)
 

Provides properties and methods for defining how a URL maps to a physical file.

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

System.Object
  System.Web.Routing.PageRouteHandler

public class PageRouteHandler : IRouteHandler

NameDescription
System_CAPS_pubmethodPageRouteHandler(String)

Initializes a new instance of the PageRouteHandler class.

System_CAPS_pubmethodPageRouteHandler(String, Boolean)

Initializes a new instance of the PageRouteHandler class.

NameDescription
System_CAPS_pubpropertyCheckPhysicalUrlAccess

Gets a value that determines whether authorization rules are applied to the physical file's URL.

System_CAPS_pubpropertyVirtualPath

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

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetHttpHandler(RequestContext)

Returns the object that processes the request.

System_CAPS_pubmethodGetSubstitutedVirtualPath(RequestContext)

Returns the virtual path of the physical file for the route after substitutions have been applied to any replacement parameters.

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

You pass an instance of PageRouteHandler to the Route constructor in order to map a URL of a physical file. The PageRouteHandler object specifies the virtual path of the physical file and determines whether authorization rules for the physical URL is checked.

.NET Framework
Available since 4.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft