| ExtensionsCreateInstance Method |
Creates a new SQL Server Express LocalDB instance
with the highest istalled version.
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 CreateInstance(
this Manager manager,
string instanceName
)
<ExtensionAttribute>
Public Shared Sub CreateInstance (
manager As Manager,
instanceName As String
)
public:
[ExtensionAttribute]
static void CreateInstance(
Manager^ manager,
String^ instanceName
)
[<ExtensionAttribute>]
static member CreateInstance :
manager : Manager *
instanceName : string -> unit
Parameters
- manager
- Type: usis.Data.LocalDbManager
The LocalDB manager object. - instanceName
- Type: SystemString
The name for the LocalDB instance to create.
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