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: 1.0.0.0 (1.0.0.0)
Syntax
public static void StopInstance(
	this Manager manager,
	string instanceName,
	int timeout
)

Parameters

manager
Type: usis.Data.LocalDbManager
The LocalDB manager object.
instanceName
Type: SystemString
The name of the LocalDB instance to stop.
timeout
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).
Exceptions
ExceptionCondition
ArgumentNullExceptionmanager is a null reference.
See Also