Udostępnij za pośrednictwem


ControllerBuilder.SetControllerFactory Method (IControllerFactory)

Sets the specified controller factory.

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

Syntax

'Declaration
Public Sub SetControllerFactory ( _
    controllerFactory As IControllerFactory _
)
public void SetControllerFactory(
    IControllerFactory controllerFactory
)
public:
void SetControllerFactory(
    IControllerFactory^ controllerFactory
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

The controllerFactory parameter is null reference (Nothing in Visual Basic).

See Also

Reference

ControllerBuilder Class

SetControllerFactory Overload

System.Web.Mvc Namespace