ControllerBuilder::SetControllerFactory Method
Sets the controller factory.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
| Name | Description | |
|---|---|---|
![]() | SetControllerFactory(IControllerFactory^) | Sets the specified controller factory. |
![]() | SetControllerFactory(Type^) | Sets the controller factory by using the specified type. |
ControllerBuilder::SetControllerFactory Method (IControllerFactory^)
Sets the specified controller factory.
Parameters
- controllerFactory
-
Type:
System.Web.Mvc::IControllerFactory^
The controller factory.
| Exception | Condition |
|---|---|
| ArgumentNullException | The controllerFactory parameter is null. |
ControllerBuilder::SetControllerFactory Method (Type^)
Sets the controller factory by using the specified type.
Parameters
- controllerFactoryType
-
Type:
System::Type^
The type of the controller factory.
| Exception | Condition |
|---|---|
| ArgumentNullException | The controllerFactoryType parameter is null. |
| 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:
