BaseDataEnvironment Class
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)
| Name | Description | |
|---|---|---|
![]() | BaseDataEnvironment() | Initializes a new instance of the BaseDataEnvironment class. |
| 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(DataSourceListener^) | This API supports the product infrastructure and is not intended to be used directly from your code. 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(String^, Guid%) | Invokes a method based on an ADODB.Command object. |
![]() | GetDataMemberCount() | Gets a count of ADODB.Command objects. |
![]() | GetDataMemberName(Int32) | This method is not implemented in the BaseDataEnvironment class. |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType() | |
![]() | MemberwiseClone() | |
![]() | removeDataSourceListener(DataSourceListener^) | This API supports the product infrastructure and is not intended to be used directly from your code. 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 | This API supports the product infrastructure and is not intended to be used directly from your code. Contains the Commands collection. |
![]() | m_Connections | Contains the Connections collection. |
![]() | m_NonRSReturningCommands | This API supports the product infrastructure and is not intended to be used directly from your code. Contains a collection. |
![]() | m_Recordsets | This API supports the product infrastructure and is not intended to be used directly from your code. 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, 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. |
Available since 1.1
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.




