ConnectionStore Class

Implements an instance of the IConnectionStore interface based on IDbConnection.

Inheritance Hierarchy

System.Object
  System.MarshalByRefObject
    System.ComponentModel.Component
      Microsoft.SqlServer.Management.ConnectionStore

Namespace:  Microsoft.SqlServer.Management
Assembly:  Microsoft.SqlServer.Management.SDK.SqlStudio (in Microsoft.SqlServer.Management.SDK.SqlStudio.dll)

Syntax

'Declaration
Public Class ConnectionStore _
    Inherits Component _
    Implements IConnectionStore(Of IDbConnection), IDisposable
'Usage
Dim instance As ConnectionStore
public class ConnectionStore : Component, 
    IConnectionStore<IDbConnection>, IDisposable
public ref class ConnectionStore : public Component, 
    IConnectionStore<IDbConnection^>, IDisposable
type ConnectionStore =  
    class
        inherit Component
        interface IConnectionStore<IDbConnection>
        interface IDisposable
    end
public class ConnectionStore extends Component implements IConnectionStore<IDbConnection>, IDisposable

The ConnectionStore type exposes the following members.

Constructors

  Name Description
Public method ConnectionStore() Initializes a new instance of the ConnectionStore class with the default property values.
Public method ConnectionStore(IServiceProvider) Initializes a new instance of the ConnectionStore class with the specified serviceProvider parameter.
Public method ConnectionStore(IContext) Initializes a new instance of the ConnectionStore class with the specified context parameter.

Top

Properties

  Name Description
Protected property CanRaiseEvents (Inherited from Component.)
Public property ConnectionInfo Gets or sets the information about the connection of the ConnectionStore class.
Public property Connections Gets the list of connections so that they can be disposed of later.
Public property Container (Inherited from Component.)
Protected property DesignMode (Inherited from Component.)
Protected property Events (Inherited from Component.)
Public property Site (Inherited from Component.)

Top

Methods

  Name Description
Public method CreateObjRef (Inherited from MarshalByRefObject.)
Public method Dispose() (Inherited from Component.)
Protected method Dispose(Boolean) Releases the unmanaged resources used by the ConnectionStore and optionally releases the managed resources. (Overrides Component.Dispose(Boolean).)
Public method Equals (Inherited from Object.)
Protected method Finalize Specifies the finalized method. (Overrides Component.Finalize().)
Public method GetConnection() Creates a copy of the existing connection. This class cannot be inherited.
Public method GetConnection(Boolean) Retrieves a connection that is used in this object. This class cannot be inherited.
Public method GetHashCode (Inherited from Object.)
Public method GetLifetimeService (Inherited from MarshalByRefObject.)
Protected method GetService (Inherited from Component.)
Public method GetType (Inherited from Object.)
Public method InitializeLifetimeService (Inherited from MarshalByRefObject.)
Protected method MemberwiseClone() (Inherited from Object.)
Protected method MemberwiseClone(Boolean) (Inherited from MarshalByRefObject.)
Public method ToString (Inherited from Component.)

Top

Events

  Name Description
Public event Disposed (Inherited from Component.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.