Catatan
Akses ke halaman ini memerlukan otorisasi. Anda dapat mencoba masuk atau mengubah direktori.
Akses ke halaman ini memerlukan otorisasi. Anda dapat mencoba mengubah direktori.
Sets the controller factory by using the specified type.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
'Declaration
Public Sub SetControllerFactory ( _
controllerFactoryType As Type _
)
public void SetControllerFactory(
Type controllerFactoryType
)
public:
void SetControllerFactory(
Type^ controllerFactoryType
)
Parameters
- controllerFactoryType
Type: System.Type
The type of the controller factory.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | The controllerFactoryType parameter is null reference (Nothing in Visual Basic). |
| 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. |