This documentation is archived and is not being maintained.

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.

System.Object
  Microsoft.VisualBasic.Compatibility.VB6.BaseDataEnvironment

Namespace:  Microsoft.VisualBasic.Compatibility.VB6
Assembly:  Microsoft.VisualBasic.Compatibility.Data (in Microsoft.VisualBasic.Compatibility.Data.dll)

[ObsoleteAttribute("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")]
public abstract class BaseDataEnvironment : DataSource, 
	IDisposable

The BaseDataEnvironment type exposes the following members.

  NameDescription
Protected methodBaseDataEnvironmentInitializes a new instance of the BaseDataEnvironment class.
Top

  NameDescription
Public propertyCommandsGets a collection of ADODB.Command objects for use in an application upgraded from Visual Basic 6.0.
Public propertyCommands[Object]Gets a collection of ADODB.Command objects for use in an application upgraded from Visual Basic 6.0.
Public propertyConnectionsGets a collection of ADODB.Connection objects for use in an application upgraded from Visual Basic 6.0.
Public propertyConnections[Object]Gets a collection of ADODB.Connection objects for use in an application upgraded from Visual Basic 6.0.
Public propertyObjectGets the BaseDataEnvironment object.
Public propertyRecordsetsGets a collection of ADODB.Recordset objects for use in an application upgraded from Visual Basic 6.0.
Public propertyRecordsets[Object]Gets a collection of ADODB.Recordset objects for use in an application upgraded from Visual Basic 6.0.
Top

  NameDescription
Public methodaddDataSourceListenerInfrastructure. This method is not implemented in the BaseDataEnvironment class.
Public methodDispose()Releases the unmanaged resources that are used by a BaseDataEnvironment.
Protected methodDispose(Boolean)Releases the unmanaged resources that are used by a BaseDataEnvironment, and optionally releases the managed resources.
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeOverrides the Finalize method. (Overrides Object.Finalize().)
Public methodgetDataMemberInvokes a method based on an ADODB.Command object.
Public methodGetDataMemberCountGets a count of ADODB.Command objects.
Public methodGetDataMemberNameThis method is not implemented in the BaseDataEnvironment class.
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodremoveDataSourceListenerInfrastructure. This method is not implemented in the BaseDataEnvironment class.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Protected fieldm_CommandsInfrastructure. Contains the Commands collection.
Protected fieldm_ConnectionsContains the Connections collection.
Protected fieldm_NonRSReturningCommandsInfrastructure. Contains a collection.
Protected fieldm_RecordsetsInfrastructure. Contains the Recordsets collection.
Top

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.

NoteNote

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.

.NET Framework

Supported in: 3.5, 3.0, 2.0
Obsolete (compiler warning) in 4

.NET Framework Client Profile

Obsolete (compiler warning) in 4

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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show: