Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
ASP.NET
ASP.NET MVC 2
System.Web.Mvc
 CreateController Method
Collapse All/Expand All Collapse All
This page is specific to
Microsoft Visual Studio 2010/.NET Framework 4

Other versions are also available for the following:
.NET Framework Class Library
IControllerFactory..::.CreateController Method

Creates the specified controller by using the specified request context.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)
Visual Basic
Function CreateController ( _
    requestContext As RequestContext, _
    controllerName As String _
) As IController
C#
IController CreateController(
    RequestContext requestContext,
    string controllerName
)
Visual C++
IController^ CreateController(
    RequestContext^ requestContext, 
    String^ controllerName
)

Parameters

requestContext
Type: System.Web.Routing..::.RequestContext
The request context.
controllerName
Type: System..::.String
The name of the controller.

Return Value

Type: System.Web.Mvc..::.IController
The controller.
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2012 Microsoft. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker