BaseDataEnvironment Class
Note: This API is now obsolete.
Emulates a Visual Basic 6.0 Data Environment in applications that have been upgraded from Visual Basic 6.0.
Assembly: Microsoft.VisualBasic.Compatibility.Data (in Microsoft.VisualBasic.Compatibility.Data.dll)
The BaseDataEnvironment type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | Commands | Gets a collection of ADODB.Command objects for use in an application upgraded from Visual Basic 6.0. |
![]() | Commands[Object] | Gets a collection of ADODB.Command objects for use in an application upgraded from Visual Basic 6.0. |
![]() | Connections | Gets a collection of ADODB.Connection objects for use in an application upgraded from Visual Basic 6.0. |
![]() | Connections[Object] | Gets a collection of ADODB.Connection objects for use in an application upgraded from Visual Basic 6.0. |
![]() | Object | Gets the BaseDataEnvironment object. |
![]() | Recordsets | Gets a collection of ADODB.Recordset objects for use in an application upgraded from Visual Basic 6.0. |
![]() | Recordsets[Object] | Gets a collection of ADODB.Recordset objects for use in an application upgraded from Visual Basic 6.0. |
| Name | Description | |
|---|---|---|
![]() | addDataSourceListener | Infrastructure. This method is not implemented in the BaseDataEnvironment class. |
![]() | Dispose() | Releases the unmanaged resources that are used by a BaseDataEnvironment. |
![]() | Dispose(Boolean) | Releases the unmanaged resources that are used by a BaseDataEnvironment, and optionally releases the managed resources. |
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Overrides the Finalize method. (Overrides Object::Finalize().) |
![]() | getDataMember | Invokes a method based on an ADODB.Command object. |
![]() | GetDataMemberCount | Gets a count of ADODB.Command objects. |
![]() | GetDataMemberName | This method is not implemented in the BaseDataEnvironment class. |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | removeDataSourceListener | Infrastructure. This method is not implemented in the BaseDataEnvironment class. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() | m_Commands | Infrastructure. Contains the Commands collection. |
![]() | m_Connections | Contains the Connections collection. |
![]() | m_NonRSReturningCommands | Infrastructure. Contains a collection. |
![]() | m_Recordsets | Infrastructure. Contains the Recordsets collection. |
In Visual Basic 6.0, data-bound forms were automatically created when you dragged database elements from a Data Environment onto a form. The Data Environment handled all the mapping between Visual Basic 6.0 and the ADO data layer. When an application is upgraded to Visual Basic 2010, a BaseDataEnvironment is created to enable the ADO-related code.
Note |
|---|
|
Functions and objects in the Microsoft.VisualBasic.Compatibility.VB6 namespace are provided for use by the tools for upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code model differs significantly from the .NET Framework implementation. |
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
