| 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
)
<ExtensionAttribute>
Public Shared Sub StopInstance (
manager As Manager,
instanceName As String,
timeout As Integer
)
public:
[ExtensionAttribute]
static void StopInstance(
Manager^ manager,
String^ instanceName,
int timeout
)
[<ExtensionAttribute>]
static member StopInstance :
manager : Manager *
instanceName : string *
timeout : int -> unit
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 See Also