BaseDataEnvironment Class

Definition

Caution

Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862

Emulates a Visual Basic 6.0 Data Environment in applications that have been upgraded from Visual Basic 6.0.

public ref class BaseDataEnvironment abstract : IDisposable, msdatasrc::DataSource
public abstract class BaseDataEnvironment : IDisposable, msdatasrc.DataSource
[System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")]
public abstract class BaseDataEnvironment : IDisposable, msdatasrc.DataSource
type BaseDataEnvironment = class
    interface DataSource
    interface IDisposable
[<System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")>]
type BaseDataEnvironment = class
    interface DataSource
    interface IDisposable
Public MustInherit Class BaseDataEnvironment
Implements DataSource, IDisposable
Inheritance
BaseDataEnvironment
Attributes
Implements
msdatasrc.DataSource IDisposable

Remarks

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.

Constructors

BaseDataEnvironment()

Initializes a new instance of the BaseDataEnvironment class.

Fields

m_Commands

Contains the Commands[] collection.

m_Connections

Contains the Connections[] collection.

m_NonRSReturningCommands

Contains a collection.

m_Recordsets

Contains the Recordsets[] collection.

Properties

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.

Methods

addDataSourceListener(DataSourceListener)

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.

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()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
removeDataSourceListener(DataSourceListener)

This method is not implemented in the BaseDataEnvironment class.

ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to