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 | |
---|---|---|
DataConnectionSupport | Initializes a new instance of the DataConnectionSupport class. |
Top
Methods
Name | Description | |
---|---|---|
AddService | Overloaded. | |
Close | Closes the specified connection. | |
CreateService | Creates a new service object, specifying the interface service type. | |
Dispose | Overloaded. Releases all resources held by the data connection. | |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Releases all resources held by the data connection when the data connection support object is destroyed. (Overrides Object.Finalize().) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetService | Overloaded. | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Initialize | Initializes the specified connection, optionally from an existing data provider object. | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
OnMessageReceived | Handles the MessageReceived event. | |
OnSiteChanged | Raises the SiteChanged() event. (Inherited from DataSiteableServiceProvider<T>.) | |
OnStateChanged | Handles the StateChanged event. | |
Open | Opens the specified data connection. | |
RemoveService | Overloaded. | |
ToString | Returns a String that represents the current Object. (Inherited from Object.) |
Top
Properties
Name | Description | |
---|---|---|
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. |
Top
Events
Name | Description | |
---|---|---|
MessageReceived | Occurs when a message is received from the data source. | |
SiteChanged | (Inherited from DataSiteableServiceProvider<T>.) | |
StateChanged | Occurs when the state of the data connection has changed. |
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
IServiceProvider.QueryService | Performs as a factory for services that are exposed through an implementation of IServiceProvider. (Inherited from ServiceProvider.) |
Top