BaseDataEnvironment 類別

定義

警告

此 API 現已淘汰。

在已經從 Visual Basic 6.0 升級的應用程式中模擬 Visual Basic 6.0 Data EnvironmentEmulates 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. https://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
繼承
BaseDataEnvironment
屬性
實作
msdatasrc.DataSource IDisposable

備註

在 Visual Basic 6.0 中,當您將資料庫元素從 Data Environment 拖曳至表單上時,就會自動建立資料系結表單。In Visual Basic 6.0, data-bound forms were automatically created when you dragged database elements from a Data Environment onto a form. Data Environment 會處理 Visual Basic 6.0 和 ADO 資料層之間的所有對應。The Data Environment handled all the mapping between Visual Basic 6.0 and the ADO data layer. 當應用程式升級為 Visual Basic 時,會建立 BaseDataEnvironment 來啟用 ADO 相關程式碼。When an application is upgraded to Visual Basic, a BaseDataEnvironment is created to enable the ADO-related code.

注意

Microsoft.VisualBasic.Compatibility.VB6 命名空間中的函式和物件都是供這些工具使用,以便從 Visual Basic 6.0 升級至 Visual Basic 2008。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. 在大多數情況下,這些函式和物件會複製在 .NET Framework 其他命名空間中可以找到的功能。In most cases, these functions and objects duplicate functionality that you can find in other namespaces in the .NET Framework. 只有當 Visual Basic 6.0 程式碼模型與 .NET Framework 實作有顯著差異時,才會需要這些函式和物件。They are necessary only when the Visual Basic 6.0 code model differs significantly from the .NET Framework implementation.

建構函式

BaseDataEnvironment()

初始化 BaseDataEnvironment 類別的新執行個體。Initializes a new instance of the BaseDataEnvironment class.

欄位

m_Commands

包含 Commands[Object] 集合。Contains the Commands[Object] collection.

m_Connections

包含 Connections[Object] 集合。Contains the Connections[Object] collection.

m_NonRSReturningCommands

包含集合。Contains a collection.

m_Recordsets

包含 Recordsets[Object] 集合。Contains the Recordsets[Object] collection.

屬性

Commands

取得 ADODB.Command 物件的集合,以便在升級自 Visual Basic 6.0 的應用程式中使用。Gets a collection of ADODB.Command objects for use in an application upgraded from Visual Basic 6.0.

Commands[Object]

取得 ADODB.Command 物件的集合,以便在升級自 Visual Basic 6.0 的應用程式中使用。Gets a collection of ADODB.Command objects for use in an application upgraded from Visual Basic 6.0.

Connections

取得 ADODB.Connection 物件的集合,以便在升級自 Visual Basic 6.0 的應用程式中使用。Gets a collection of ADODB.Connection objects for use in an application upgraded from Visual Basic 6.0.

Connections[Object]

取得 ADODB.Connection 物件的集合,以便在升級自 Visual Basic 6.0 的應用程式中使用。Gets a collection of ADODB.Connection objects for use in an application upgraded from Visual Basic 6.0.

Object

取得 BaseDataEnvironment 物件。Gets the BaseDataEnvironment object.

Recordsets

取得 ADODB.Recordset 物件的集合,以便在升級自 Visual Basic 6.0 的應用程式中使用。Gets a collection of ADODB.Recordset objects for use in an application upgraded from Visual Basic 6.0.

Recordsets[Object]

取得 ADODB.Recordset 物件的集合,以便在升級自 Visual Basic 6.0 的應用程式中使用。Gets a collection of ADODB.Recordset objects for use in an application upgraded from Visual Basic 6.0.

方法

addDataSourceListener(DataSourceListener)

這個方法尚未在 BaseDataEnvironment 類別中實作。This method is not implemented in the BaseDataEnvironment class.

Dispose()

釋放 BaseDataEnvironment 所使用的 Unmanaged 資源。Releases the unmanaged resources that are used by a BaseDataEnvironment.

Dispose(Boolean)

釋放 BaseDataEnvironment 所使用的 Unmanaged 資源,並選擇性地釋放 Managed 資源。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.

(繼承來源 Object)
Finalize()

覆寫 Finalize() 方法。Overrides the Finalize() method.

getDataMember(String, Guid)

根據 ADODB.Command 物件,叫用方法。Invokes a method based on an ADODB.Command object.

GetDataMemberCount()

取得 ADODB.Command 物件的計數。Gets a count of ADODB.Command objects.

GetDataMemberName(Int32)

這個方法尚未在 BaseDataEnvironment 類別中實作。This method is not implemented in the BaseDataEnvironment class.

GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(繼承來源 Object)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(繼承來源 Object)
removeDataSourceListener(DataSourceListener)

這個方法尚未在 BaseDataEnvironment 類別中實作。This method is not implemented in the BaseDataEnvironment class.

ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

適用於