BaseDataEnvironment 類別

定義

警告

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

在從 Visual Basic 6.0 升級的應用程式中模擬 Visual Basic 6.0 Data Environment

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
繼承
BaseDataEnvironment
屬性
實作
msdatasrc.DataSource IDisposable

備註

在 Visual Basic 6.0 中,當你將資料庫元素從 Data Environment 拖曳到表單時,資料綁定表單會自動建立。 Data Environment 負責 Visual Basic 6.0 與 ADO 資料層之間的所有映射。 當應用程式升級至 Visual Basic 時,會建立一個 BaseDataEnvironment 以啟用 ADO 相關程式碼。

Note

Microsoft.VisualBasic.Compatibility.VB6 命名空間中的函式與物件,供工具從 Visual Basic 6.0 升級至 Visual Basic 2008 使用。 大多數情況下,這些函式和物件會重複你在 .NET Framework 中其他命名空間中能找到的功能。 只有當 Visual Basic 6.0 的程式碼模型與 .NET Framework 實作有顯著差異時,才需要使用這些工具。

建構函式

名稱 Description
BaseDataEnvironment()
已淘汰.

初始化 BaseDataEnvironment 類別的新執行個體。

欄位

名稱 Description
m_Commands
已淘汰.

包含收藏品 Commands[]

m_Connections
已淘汰.

包含收藏品 Connections[]

m_NonRSReturningCommands
已淘汰.

包含一個收藏。

m_Recordsets
已淘汰.

包含收藏品 Recordsets[]

屬性

名稱 Description
Commands
已淘汰.

取得一組 ADODB.Command 物件,用於從 Visual Basic 6.0 升級的應用程式。

Commands[Object]
已淘汰.

取得一組 ADODB.Command 物件,用於從 Visual Basic 6.0 升級的應用程式。

Connections
已淘汰.

取得一組 ADODB.Connection 物件,用於從 Visual Basic 6.0 升級的應用程式。

Connections[Object]
已淘汰.

取得一組 ADODB.Connection 物件,用於從 Visual Basic 6.0 升級的應用程式。

Object
已淘汰.

拿到 BaseDataEnvironment 物品。

Recordsets
已淘汰.

取得一組 ADODB.Recordset 物件,用於從 Visual Basic 6.0 升級的應用程式。

Recordsets[Object]
已淘汰.

取得一組 ADODB.Recordset 物件,用於從 Visual Basic 6.0 升級的應用程式。

方法

名稱 Description
addDataSourceListener(DataSourceListener)
已淘汰.

此方法未在本 BaseDataEnvironment 類別中實作。

Dispose()
已淘汰.

釋放 BaseDataEnvironment被 .

Dispose(Boolean)
已淘汰.

釋放被 BaseDataEnvironment使用的非管理資源,並可選擇性地釋放受管理資源。

Equals(Object)
已淘汰.

判斷指定的 物件是否等於目前的物件。

(繼承來源 Object)
Finalize()
已淘汰.

會覆寫這個 Finalize() 方法。

getDataMember(String, Guid)
已淘汰.

呼叫基於 ADODB.Command 物件的方法。

GetDataMemberCount()
已淘汰.

會數 ADODB.Command 點物件。

GetDataMemberName(Int32)
已淘汰.

此方法未在本 BaseDataEnvironment 類別中實作。

GetHashCode()
已淘汰.

做為預設雜湊函式。

(繼承來源 Object)
GetType()
已淘汰.

取得目前實例的 Type

(繼承來源 Object)
MemberwiseClone()
已淘汰.

建立目前 Object的淺層複本。

(繼承來源 Object)
removeDataSourceListener(DataSourceListener)
已淘汰.

此方法未在本 BaseDataEnvironment 類別中實作。

ToString()
已淘汰.

傳回表示目前 物件的字串。

(繼承來源 Object)

適用於