Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

UrlHelper Constructor (RequestContext)

.NET Framework 4

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

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

public UrlHelper(
	RequestContext requestContext
)

Parameters

requestContext
Type: System.Web.Routing.RequestContext
An object that contains information about the current request and about the route that it matched.

ExceptionCondition
ArgumentNullException

The requestContext parameter is null.

Community Additions

ADD
Show:
© 2015 Microsoft