MSSqlLocalDBApi Methods

Provides helper methods allowing you to manage the SQL Server Express LocalDB instances.
Name Description
CheckHandler() Throws an ObjectDisposedException if the LocalDBInstance.dll handle is IntPtr.Zero.
CreateInstance(String, String) Creates a new SQL Server Express LocalDB instance.
DeleteInstance(String) Deletes the specified LocalDB instance.
Dispose() Disposes the MSSqlLocalDBApi instance.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetInstanceInfo(String) Returns information for the specified SQL Server Express LocalDB instance.
GetInstances() Returns the names of all SQL Server Express LocalDB instances.
GetType() Gets the Type of the current instance. Inherited from Object.
GetVersionInfo(String) Returns information for the specified SQL Server Express LocalDB version.
GetVersions() Returns all SQL Server Express LocalDB versions installed.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
ShareInstance(SecurityIdentifier, String, String) Shares the specified SQL Server Express LocalDB instance with other users with the specified shared name.
StartInstance(String, out String) Starts the specified SQL Server Express LocalDB instance.
StartTracing() Starts tracing API calls for all the SQL Server Express LocalDB instances that belong to the current system user.
StopInstance(String, MSSqlLocalDBShutdownFlags, Int64) Stops the specified SQL Server Express LocalDB instance from running.
StopTracing() Stops tracing API calls for all the SQL Server Express LocalDB instances that belong to the current system user.
ToString() Returns a string that represents the current object. Inherited from Object.
UnshareInstance(String) Stops the sharing of the specified SQL Server Express LocalDB instance.
See Also