ExceptionContext Constructor (ControllerContext, Exception)
Collapse the table of content
Expand the table of content

ExceptionContext Constructor (ControllerContext, Exception)

Initializes a new instance of the ExceptionContext class for the specified exception by using the specified controller context.

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

'Declaration
Public Sub New ( _
	controllerContext As ControllerContext, _
	exception As Exception _
)
'Usage
Dim controllerContext As ControllerContext 
Dim exception As Exception 

Dim instance As New ExceptionContext(controllerContext, _
	exception)

Parameters

controllerContext
Type: System.Web.Mvc.ControllerContext

The controller context.

exception
Type: System.Exception

The exception.

ExceptionCondition
ArgumentNullException

The exception parameter is Nothing.

Show:
© 2016 Microsoft