UrlHelper Constructor (RequestContext, RouteCollection)

Initializes a new instance of the UrlHelper class by using the specified request context and route collection.

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

'Declaration
Public Sub New ( _
	requestContext As RequestContext, _
	routeCollection As RouteCollection _
)
'Usage
Dim requestContext As RequestContext 
Dim routeCollection As RouteCollection 

Dim instance As New UrlHelper(requestContext, _
	routeCollection)

Parameters

requestContext
Type: System.Web.Routing.RequestContext

An object that contains information about the current request and about the route that it matched.

routeCollection
Type: System.Web.Routing.RouteCollection

A collection of routes.

ExceptionCondition
ArgumentNullException

The requestContext or the routeCollection parameter is Nothing.

Show: