BaseDataEnvironment BaseDataEnvironment BaseDataEnvironment BaseDataEnvironment Class

Definition

Warning

This API is now obsolete.

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
[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
Public MustInherit Class BaseDataEnvironment
Implements DataSource, IDisposable
Inheritance
BaseDataEnvironmentBaseDataEnvironmentBaseDataEnvironmentBaseDataEnvironment
Attributes
Implements
msdatasrc.DataSourcemsdatasrc.DataSourcemsdatasrc.DataSourcemsdatasrc.DataSource IDisposableIDisposableIDisposableIDisposable

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

Initializes a new instance of the BaseDataEnvironment class.

Fields

m_Commands m_Commands m_Commands m_Commands

Contains the Commands[Object] collection.

m_Connections m_Connections m_Connections m_Connections

Contains the Connections[Object] collection.

m_NonRSReturningCommands m_NonRSReturningCommands m_NonRSReturningCommands m_NonRSReturningCommands

Contains a collection.

m_Recordsets m_Recordsets m_Recordsets m_Recordsets

Contains the Recordsets[Object] collection.

Properties

Commands Commands Commands Commands

Gets a collection of ADODB.Command objects for use in an application upgraded from Visual Basic 6.0.

Commands[Object] Commands[Object] Commands[Object] Commands[Object]

Gets a collection of ADODB.Command objects for use in an application upgraded from Visual Basic 6.0.

Connections Connections Connections Connections

Gets a collection of ADODB.Connection objects for use in an application upgraded from Visual Basic 6.0.

Connections[Object] Connections[Object] Connections[Object] Connections[Object]

Gets a collection of ADODB.Connection objects for use in an application upgraded from Visual Basic 6.0.

Object Object Object Object

Gets the BaseDataEnvironment object.

Recordsets Recordsets Recordsets Recordsets

Gets a collection of ADODB.Recordset objects for use in an application upgraded from Visual Basic 6.0.

Recordsets[Object] Recordsets[Object] Recordsets[Object] Recordsets[Object]

Gets a collection of ADODB.Recordset objects for use in an application upgraded from Visual Basic 6.0.

Methods

addDataSourceListener(DataSourceListener) addDataSourceListener(DataSourceListener) addDataSourceListener(DataSourceListener) addDataSourceListener(DataSourceListener)

This method is not implemented in the BaseDataEnvironment class.

Dispose() Dispose() Dispose() Dispose()

Releases the unmanaged resources that are used by a BaseDataEnvironment.

Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

Releases the unmanaged resources that are used by a BaseDataEnvironment, and optionally releases the managed resources.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
Finalize() Finalize() Finalize() Finalize()

Overrides the Finalize() method.

getDataMember(String, Guid) getDataMember(String, Guid) getDataMember(String, Guid) getDataMember(String, Guid)

Invokes a method based on an ADODB.Command object.

GetDataMemberCount() GetDataMemberCount() GetDataMemberCount() GetDataMemberCount()

Gets a count of ADODB.Command objects.

GetDataMemberName(Int32) GetDataMemberName(Int32) GetDataMemberName(Int32) GetDataMemberName(Int32)

This method is not implemented in the BaseDataEnvironment class.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
removeDataSourceListener(DataSourceListener) removeDataSourceListener(DataSourceListener) removeDataSourceListener(DataSourceListener) removeDataSourceListener(DataSourceListener)

This method is not implemented in the BaseDataEnvironment class.

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to