Skip to main content

MSSqlLocalDBApi.StopInstance(String, MSSqlLocalDBShutdownFlags, Int64) Method

Stops the specified SQL Server Express LocalDB instance from running.

Namespace: DevExpress.Xpo.DB.Helpers

Assembly: DevExpress.Xpo.v24.2.dll

Declaration

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

Parameters

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.

Remarks

Calls the LocalDBStopInstance function internally.

See Also