Click or drag to resize

ExtensionsStopInstance Method (Manager, String, Int32)

Stops the specified SQL Server Express LocalDB instance from running.

Namespace:  usis.Data.LocalDb
Assembly:  usis.Data.LocalDb (in usis.Data.LocalDb.dll) Version: (
public static void StopInstance(
	this Manager manager,
	string instanceName,
	int timeout


Type: usis.Data.LocalDbManager
The LocalDB manager object.
Type: SystemString
The name of the LocalDB instance to stop.
Type: SystemInt32
The time in seconds to wait for this operation to complete. If this value is 0, this function will return immediately without waiting for the LocalDB instance to stop.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Manager. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
ArgumentNullExceptionmanager is a null reference.
See Also