DataConnectionSupport Members

Provides properties and methods that enable you to work directly with connections to a data source.

The DataConnectionSupport type exposes the following members.

Constructors

  Name Description
Protected method DataConnectionSupport Class constructor. Instantiates a nonparameterized instance of the DataConnectionSupport class.

Top

Methods

  Name Description
Public method Close Closes the specified connection.
Public method Dispose Overloaded. Closes the data connection and releases resources.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize (Overrides Object.Finalize().)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetService Overloaded.
Protected method GetServiceImpl Overloaded.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Initialize Initializes the specified connection, optionally from an existing data provider object.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method OnSiteChanged Raises the SiteChanged event. (Inherited from ServiceProviderWithSite.)
Public method Open Opens the specified connection.
Protected method RaiseMessageReceived Raises the MessageReceivedevent on the enclosing DataConnection instance.
Protected method RaiseStateChanged Raises the state changed event on the enclosing DataConnection instance.
Public method ToString Returns a String that represents the current Object. (Inherited from Object.)

Top

Properties

  Name Description
Public property ConnectionString Retrieves or sets a string representation of information required to establish a given data source connection.
Public property ConnectionTimeout Retrieves or sets the amount of time, in seconds, to wait to establish a connection before terminating the attempt and generating a timeout error.
Public property ProviderObject Retrieves the underlying data provider object for the specified connection.
Protected property ServiceTypes Retrieves a list of service types used to convert the unmanaged QueryService method call, in which a service GUID is specified, into a managed IServiceProvider.GetService method call, in which a managed type is specified. (Inherited from ServiceProvider.)
Public property Site Retrieves or sets the site object instance. (Inherited from ServiceProviderWithSite.)
Public property State Retrieves the state of the data connection.

Top

Events

  Name Description
Public event SiteChanged Event raised when the Site property has changed. (Inherited from ServiceProviderWithSite.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IObjectWithSite.GetSite Retrieves the last site set using the IObjectWithSite.SetSite method. If there is no known site, an exception is thrown. (Inherited from ServiceProviderWithSite.)
Explicit interface implemetationPrivate method IServiceProvider.QueryService Performs as a factory for services that are exposed through an implementation of IServiceProvider. (Inherited from ServiceProvider.)
Explicit interface implemetationPrivate method IObjectWithSite.SetSite Provides a site's IUnknown pointer to a given object. (Inherited from ServiceProviderWithSite.)

Top

See Also

Reference

DataConnectionSupport Class

Microsoft.VisualStudio.Data Namespace