MSSqlLocalDBApi.StopInstance(String, MSSqlLocalDBShutdownFlags, Int64) Method

Stops the specified SQL Server Express LocalDB instance from running.

Namespace: DevExpress.Xpo.DB.Helpers

Assembly: DevExpress.Xpo.v21.1.dll


public void StopInstance(
    string instanceName,
    MSSqlLocalDBShutdownFlags shutdownFlags,
    long timeout


Name Type Description
instanceName String

The string name of the LocalDB instance to be stopped.

shutdownFlags DevExpress.Xpo.DB.Helpers.MSSqlLocalDBShutdownFlags

An MSSqlLocalDBShutdownFlags enumeration value that specifies the way to stop the instance.

timeout Int64

An integer number that is the number of seconds to wait for the stop operation to complete. If set to 0, the method returns immediately without waiting for the LocalDB instance to stop.


Calls the LocalDBStopInstance function internally.

See Also