ControllerBuilder::SetControllerFactory Method

 

Sets the controller factory.

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

NameDescription
System_CAPS_pubmethodSetControllerFactory(IControllerFactory^)

Sets the specified controller factory.

System_CAPS_pubmethodSetControllerFactory(Type^)

Sets the controller factory by using the specified type.

Return to top

ControllerBuilder::SetControllerFactory Method (IControllerFactory^)

Sets the specified controller factory.

public:
void SetControllerFactory(
	IControllerFactory^ controllerFactory
)

Parameters

controllerFactory
Type: System.Web.Mvc::IControllerFactory^

The controller factory.

Exception Condition
ArgumentNullException

The controllerFactory parameter is null.

Return to top

ControllerBuilder::SetControllerFactory Method (Type^)

Sets the controller factory by using the specified type.

public:
void SetControllerFactory(
	Type^ controllerFactoryType
)

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.

Return to top
Show: