UrlHelper Constructor
Initializes a new instance of the UrlHelper class.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
| Name | Description | |
|---|---|---|
![]() | UrlHelper() | Initializes a new instance of the UrlHelper class. |
![]() | UrlHelper(RequestContext) | Initializes a new instance of the UrlHelper class using the specified request context. |
![]() | UrlHelper(RequestContext, RouteCollection) | Initializes a new instance of the UrlHelper class using the specified request context and route collection. |
UrlHelper Constructor (RequestContext)
Initializes a new instance of the UrlHelper class using the specified request context.
UrlHelper Constructor (RequestContext, RouteCollection)
Initializes a new instance of the UrlHelper class using the specified request context and route collection.
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. |
Show:
