Supports a connection to a data source.
The DataConnection type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
![]() |
DataConnection | Class constructor. Instantiates a new instance of the DataConnection class. |
Top
Methods
| Name | Description | |
|---|---|---|
![]() |
Clone | Creates a cloned instance of this data connection, which retains the same connection properties and state as the original. |
![]() |
Close | Closes the current data connection. |
![]() |
Dispose | Overloaded. |
![]() |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() |
EquivalentTo | Retrieves a Boolean value indicating whether or not information about the current connection is equivalent, in a design time sense, to the specified connection information. |
![]() |
Finalize | (Overrides Object.Finalize().) |
![]() |
GetExclusiveAccessProxy | Retrieves a proxy instance that allows the caller exclusive access to the data connection. |
![]() |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() |
GetLockedProviderObject | Overloaded. |
![]() |
GetService | Overloaded. |
![]() |
GetServiceImpl | Overloaded. |
![]() |
GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() |
OnMessageReceived | Handler for the MessageReceived event. |
![]() |
OnStateChanged | Handler for the StateChanged event. |
![]() |
Open | Opens this data connection. |
![]() |
ReleaseExclusiveAccessProxy | Releases an existing exclusive access proxy, as provided with a call to the GetExclusiveAccessProxy method. |
![]() |
ToString | Returns a String that represents the current Object. (Inherited from Object.) |
![]() |
UnlockProviderObject | Unlocks a DDEX Provider object that has been locked using a call to the GetLockedProviderObjectmethod. |
Top
Properties
| Name | Description | |
|---|---|---|
![]() |
AsyncCommand | Retrieves an object that can perform asynchronous derivation and execution of commands on the data source. |
![]() |
Command | Retrieves an object that can perform derivation and execution of commands on the data source. |
![]() |
ConnectionSupport | Retrieves the underlying data provider connection support object that is being used to support the current data connection instance. |
![]() |
ConnectionTimeout | Retrieves or sets the amount of time, in seconds, before a command to open a connection times out. |
![]() |
DisplayConnectionString | Retrieves or sets unencrypted connection information in the form of a DDEX-provider-specific string. |
![]() |
EncryptedConnectionString | Retrieves or sets encrypted connection information in the form of a DPAPI-encrypted, provider-specific string. |
![]() |
IsLockedForExclusiveAccess | Retrieves a Boolean value indicating whether the current connection is locked by a client for exclusive access. |
![]() |
ObjectChangeEvents | Retrieves an object that provides a set of events raised when data objects on the data source are added, changed, or removed. |
![]() |
ObjectIdentifierConverter | Retrieves an object that can convert data object identifiers from formatted strings to unformatted parts and vice versa. |
![]() |
ObjectIdentifierResolver | Retrieves an object that can resolve data object identifiers through both expansion and contraction. |
![]() |
ObjectItemComparer | Retrieves an object that can compare identifier parts and properties on data objects. |
![]() |
ObjectSupport | Retrieves an object that provides an XML stream defining the various DDEX data object types supported by the current data connection. |
![]() |
Provider | Retrieves the unique identifier of the DDEX Provider for the current data connection. |
![]() |
ProviderObjectIsLocked | Retrieves a Boolean value indicating whether the underlying DDEX Provider object is locked for use by a client. |
![]() |
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.) |
![]() |
Source | Retrieves the globally unique identifier (GUID) of the data source for the current data connection, if any. |
![]() |
SourceInformation | Retrieves an object that provides a set of well known name/value pairs describing the characteristics of the data source. |
![]() |
SourceVersionComparer | Retrieves an object that allows you to compare data-source-specific version numbers. |
![]() |
State | Retrieves the current state of this data connection. |
![]() |
Transaction | Retrieves an object that enables transaction processing; that is, allows you to begin, commit, and rollback transactions on the data source. |
![]() |
ViewSupport | Retrieves an object that provides an XML stream defining the various data views supported by the current data connection. |
Top
Events
| Name | Description | |
|---|---|---|
![]() |
MessageReceived | Event that is raised when a message is received from the data source. |
![]() |
StateChanged | Event that is raised when the state of the data connection has changed. |
Top
Explicit Interface Implementations
| Name | Description | |
|---|---|---|
![]() ![]() |
ICloneable.Clone | Creates a new connection object instance that is a copy of the current instance. |
![]() ![]() |
IServiceProvider.QueryService | Performs as a factory for services that are exposed through an implementation of IServiceProvider. (Inherited from ServiceProvider.) |
Top
.gif)
.gif)
.gif)
.gif)
.gif)
.gif)
.gif)