Click or drag to resize

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
)

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
ExceptionCondition
ArgumentNullExceptionmanager is a null reference.
See Also