Back to Devexpress

Controller.Create(Type, IServiceProvider) Method

expressappframework-devexpress-dot-expressapp-dot-controller-dot-create-x28-system-dot-type-system-dot-iserviceprovider-x29.md

latest1.8 KB
Original Source

Controller.Create(Type, IServiceProvider) Method

Instantiates a Controller object of the specified type and raises its Controller.AfterConstruction event.

Namespace : DevExpress.ExpressApp

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
public static Controller Create(
    Type controllerType,
    IServiceProvider serviceProvider
)
vb
Public Shared Function Create(
    controllerType As Type,
    serviceProvider As IServiceProvider
) As Controller

Parameters

NameTypeDescription
controllerTypeType

A Type object that defines the type of the new Controller object.

| | serviceProvider | IServiceProvider |

An IServiceProvider object.

|

Returns

TypeDescription
Controller

A Controller object.

|

See Also

Controller Class

Controller Members

DevExpress.ExpressApp Namespace