UrlHelper Constructor

 

Initializes a new instance of the UrlHelper class.

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

NameDescription
System_CAPS_pubmethodUrlHelper()

Initializes a new instance of the UrlHelper class.

System_CAPS_pubmethodUrlHelper(RequestContext)

Initializes a new instance of the UrlHelper class using the specified request context.

System_CAPS_pubmethodUrlHelper(RequestContext, RouteCollection)

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

Return to top

UrlHelper Constructor ()

Initializes a new instance of the UrlHelper class.

No code example is currently available or this language may not be supported.
Return to top

UrlHelper Constructor (RequestContext)

Initializes a new instance of the UrlHelper class using the specified request context.

No code example is currently available or this language may not be supported.

Parameters

requestContext
Type: System.Web.Routing.RequestContext

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

Return to top

UrlHelper Constructor (RequestContext, RouteCollection)

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

No code example is currently available or this language may not be supported.

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.

Exception Condition
ArgumentNullException

The requestContext or the routeCollection parameter is null.

Return to top
Show: