Share via


DataConnectionSupport Class

Definition

Represents an implementation of the IVsDataConnectionSupport interface.

public ref class DataConnectionSupport abstract : Microsoft::VisualStudio::Data::Framework::DataSiteableServiceProvider<Microsoft::VisualStudio::Data::Services::IVsDataConnection ^>, IDisposable, IServiceProvider, Microsoft::VisualStudio::Data::Services::IVsDataConnectionEvents, Microsoft::VisualStudio::Data::Services::SupportEntities::IVsDataConnectionSupport
public abstract class DataConnectionSupport : Microsoft.VisualStudio.Data.Framework.DataSiteableServiceProvider<Microsoft.VisualStudio.Data.Services.IVsDataConnection>, IDisposable, IServiceProvider, Microsoft.VisualStudio.Data.Services.IVsDataConnectionEvents, Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataConnectionSupport
type DataConnectionSupport = class
    inherit DataSiteableServiceProvider<IVsDataConnection>
    interface IVsDataConnectionSupport
    interface IServiceProvider
    interface IDisposable
    interface IVsDataConnectionEvents
Public MustInherit Class DataConnectionSupport
Inherits DataSiteableServiceProvider(Of IVsDataConnection)
Implements IDisposable, IServiceProvider, IVsDataConnectionEvents, IVsDataConnectionSupport
Inheritance
Derived
Implements

Constructors

DataConnectionSupport()

Initializes a new instance of the DataConnectionSupport class.

Properties

ConnectionString

Gets or sets a string representation of information required to establish a specified data source connection.

ConnectionTimeout

Gets or sets the amount of time to wait when establishing a connection before terminating the attempt and generating a timeout error.

ParentProvider

Gets the current instance of the parent service provider.

(Inherited from ServiceProvider)
ProviderObject

Gets the underlying data provider, which supports the current data connection.

ServiceProvider

Gets the global Visual Studio service provider.

Site

Gets or sets the site.

(Inherited from DataSiteableServiceProvider<T>)
State

Gets the state of the data connection.

Methods

AddService(Type, Object, Boolean)

Adds the specified service to the collection of service objects or to the parent service container.

(Inherited from ServiceProvider)
AddService(Type, Object)

Adds the specified service to the internal collection of services.

(Inherited from ServiceProvider)
AddService(Type, ServiceCreatorCallback, Boolean)

Adds the specified service to the internal collection of services or to the parent service container.

(Inherited from ServiceProvider)
AddService(Type, ServiceCreatorCallback)

Adds the specified service to the internal collection of services.

(Inherited from ServiceProvider)
Close()

Closes the specified connection.

CreateService(IServiceContainer, Type)

Creates a new service object, specifying the interface service type.

Dispose()

Releases all resources held by the data connection.

Dispose(Boolean)

Releases all resources held by the data connection.

Finalize()

Releases all resources held by the data connection when the data connection support object is destroyed.

GetService(Guid)

Retrieves a service with a specified service GUID.

(Inherited from ServiceProvider)
GetService(Type)

Retrieves a service of the specified type.

(Inherited from ServiceProvider)
Initialize(Object)

Initializes the specified connection, optionally from an existing data provider object.

OnMessageReceived(DataConnectionMessageReceivedEventArgs)

Handles the MessageReceived event.

OnSiteChanged(EventArgs)

Raises the SiteChanged event.

(Inherited from DataSiteableServiceProvider<T>)
OnStateChanged(DataConnectionStateChangedEventArgs)

Handles the StateChanged event.

Open(Boolean)

Opens the specified data connection.

RemoveService(Type, Boolean)

Removes the specified service from the internal services collection or from the parent service container.

(Inherited from ServiceProvider)
RemoveService(Type)

Removes the specified service from the internal services collection

(Inherited from ServiceProvider)

Events

MessageReceived

Occurs when a message is received from the data source.

SiteChanged

Occurs when the site has changed.

(Inherited from DataSiteableServiceProvider<T>)
StateChanged

Occurs when the state of the data connection has changed.

Explicit Interface Implementations

IServiceProvider.QueryService(Guid, Guid, IntPtr)

Performs as a factory for services that are exposed through an implementation of IServiceProvider.

(Inherited from ServiceProvider)

Extension Methods

QueryService(IServiceProvider, Guid)

Gets a service exposed by a service provider based on its service GUID.

QueryService<TService>(IServiceProvider)

Gets a service exposed by a service provider based on its service type.

Applies to