ControllerBuilder.SetControllerFactory Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
SetControllerFactory(Type) |
Sets the controller factory by using the specified type. |
SetControllerFactory(IControllerFactory) |
Sets the specified controller factory. |
SetControllerFactory(Type)
Sets the controller factory by using the specified type.
public void SetControllerFactory(Type controllerFactoryType);
member this.SetControllerFactory : Type -> unit
Public Sub SetControllerFactory (controllerFactoryType As Type)
Parameters
- controllerFactoryType
- Type
The type of the controller factory.
Exceptions
The controllerFactoryType
parameter is null.
The controller factory cannot be assigned from the type in the controllerFactoryType
parameter.
An error occurred while the controller factory was being set.
Applies to
SetControllerFactory(IControllerFactory)
Sets the specified controller factory.
public void SetControllerFactory(System.Web.Mvc.IControllerFactory controllerFactory);
member this.SetControllerFactory : System.Web.Mvc.IControllerFactory -> unit
Public Sub SetControllerFactory (controllerFactory As IControllerFactory)
Parameters
- controllerFactory
- IControllerFactory
The controller factory.
Exceptions
The controllerFactory
parameter is null.