Method | Description | |
---|---|---|
RegisterArea ( System.Web.Mvc.AreaRegistrationContext context ) : void |
Method | Description | |
---|---|---|
RegisterAllViewModels ( ) : void |
Automatically register all view models for an area. This is done by searching the file system for all .cshtml files, determining the controller and view names from the path, and using the BuildManager to determine the model type by compiling the view. Note that if your area contains a lot of views, this can be a lengthy process and you might be better off explicitly registering your views with the RegisterViewModel method
|
|
RegisterMarkupDecorator ( |
Registers a IMarkupDecorator implementation.
|
|
RegisterViewModel ( |
Registers a View Model without associated View.
|
|
RegisterViewModel ( string viewName, |
Registers a View Model and associated View.
|
public RegisterArea ( System.Web.Mvc.AreaRegistrationContext context ) : void | ||
context | System.Web.Mvc.AreaRegistrationContext | |
return | void |
protected RegisterMarkupDecorator ( |
||
markupDecoratorType | The type of the markup decorator. The type must have a parameterless constructor and implement |
|
return | void |
protected RegisterViewModel ( |
||
modelType | The View Model type. | |
return | void |
protected RegisterViewModel ( string viewName, |
||
viewName | string | The name of the View to register. |
modelType | The View Model Type to associate with the View. Must be a subclass of Type |
|
controllerName | string | The Controller name. If not specified (or |
return | void |