Share via


DataConnectionSupport Members

Include Protected Members
Include Inherited 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

Initializes a new instance of the DataConnectionSupport class.

Top

Methods

 

Name

Description

Public method

AddService

Overloaded. Adds the specified service to the internal collection of services.

Public method

Close

Closes the specified connection.

Protected method

CreateService

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

Public method

Dispose

Overloaded. Releases all resources held by the data connection.

Public method

Equals

Determines whether the specified Object is equal to the current Object. (Inherited from Object.)

Protected method

Finalize

Releases all resources held by the data connection when the data connection support object is destroyed. (Overrides Object.Finalize().)

Public method

GetHashCode

Serves as a hash function for a particular type. (Inherited from Object.)

Public method

GetService

Overloaded. Retrieves a service.

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

OnMessageReceived

Handles the MessageReceived event.

Protected method

OnSiteChanged

Raises the SiteChanged event. (Inherited from DataSiteableServiceProvider<T>.)

Protected method

OnStateChanged

Handles the StateChanged event.

Public method

Open

Opens the specified data connection.

Public method

RemoveService

Overloaded. Removes the specified service.

Public method

ToString

Returns a string that represents the current object. (Inherited from Object.)

Top

Properties

 

Name

Description

Public property

ConnectionString

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

Public property

ConnectionTimeout

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

Protected property

ParentProvider

Gets the current instance of the parent service provider. (Inherited from ServiceProvider.)

Public property

ProviderObject

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

Protected property

ServiceProvider

Gets the global Visual Studio service provider.

Public property

Site

Gets or sets the site. (Inherited from DataSiteableServiceProvider<T>.)

Public property

State

Gets the state of the data connection.

Top

Events

 

Name

Description

Public event

MessageReceived

Occurs when a message is received from the data source.

Public event

SiteChanged

Occurs when the site has changed. (Inherited from DataSiteableServiceProvider<T>.)

Public event

StateChanged

Occurs when the state of the data connection has changed.

Top

Explicit Interface Implementations

 

Name

Description

Explicit interface implemetationPrivate method

IServiceProvider.QueryService

Performs as a factory for services that are exposed through an implementation of IServiceProvider. (Inherited from ServiceProvider.)

Top

See Also

Reference

DataConnectionSupport Class

Microsoft.VisualStudio.Data.Framework Namespace