DefaultControllerFactory Class

 

Represents the controller factory that is registered by default.

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

System::Object
  System.Web.Mvc::DefaultControllerFactory

public ref class DefaultControllerFactory : IControllerFactory

NameDescription
System_CAPS_pubmethodDefaultControllerFactory()

Initializes a new instance of the DefaultControllerFactory class.

System_CAPS_pubmethodDefaultControllerFactory(IControllerActivator^)

Initializes a new instance of the DefaultControllerFactory class using a controller activator.

NameDescription
System_CAPS_pubmethodCreateController(RequestContext^, String^)

Creates the specified controller by using the specified request context.

System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_protmethodGetControllerInstance(RequestContext^, Type^)

Retrieves the controller instance for the specified request context and controller type.

System_CAPS_protmethodGetControllerSessionBehavior(RequestContext^, Type^)

Returns the controller's session behavior.

System_CAPS_protmethodGetControllerType(RequestContext^, String^)

Retrieves the controller type for the specified name and request context.

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodReleaseController(IController^)

Releases the specified controller.

System_CAPS_pubmethodToString()

(Inherited from Object.)

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodIControllerFactory::GetControllerSessionBehavior(RequestContext^, String^)

This API supports the ASP.NET MVC infrastructure and is not intended to be used directly from your code. This method calls the GetControllerSessionBehavior method.

This class provides a convenient base class for developers who want to make only minor changes to controller creation. This class calls the Dispose method for any controller that implements the IDisposable interface.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: