ControllerBuilder.SetControllerFactory Method (Type)
Sets the controller factory by using the specified type.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
'Declaration Public Sub SetControllerFactory ( _ controllerFactoryType As Type _ ) 'Usage Dim instance As ControllerBuilder Dim controllerFactoryType As Type instance.SetControllerFactory(controllerFactoryType)
Parameters
- controllerFactoryType
- Type: System.Type
The type of the controller factory.
| Exception | Condition |
|---|---|
| ArgumentNullException | The controllerFactoryType parameter is Nothing. |
| ArgumentException | The controller factory cannot be assigned from the type in the controllerFactoryType parameter. |
| InvalidOperationException | An error occurred while the controller factory was being set. |
Show: