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。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
- 继承
-
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[] 集合。Contains the Commands[] collection. |
| m_Connections |
包含 Connections[] 集合。Contains the Connections[] collection. |
| m_NonRSReturningCommands |
包含一个集合。Contains a collection. |
| m_Recordsets |
包含 Recordsets[] 集合。Contains the Recordsets[] collection. |
属性
| Commands |
获取 |
| Commands[Object] |
获取 |
| Connections |
获取 |
| Connections[Object] |
获取 |
| Object |
获取 BaseDataEnvironment 对象。Gets the BaseDataEnvironment object. |
| Recordsets |
获取 |
| Recordsets[Object] |
获取 |
方法
| addDataSourceListener(DataSourceListener) |
此方法未在 BaseDataEnvironment 类中实现。This method is not implemented in the BaseDataEnvironment class. |
| Dispose() |
释放由 BaseDataEnvironment 占用的非托管资源。Releases the unmanaged resources that are used by a BaseDataEnvironment. |
| Dispose(Boolean) |
释放由 BaseDataEnvironment 使用的非托管资源,也可以释放托管资源。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) |
基于 |
| GetDataMemberCount() |
获取 |
| GetDataMemberName(Int32) |
此方法未在 BaseDataEnvironment 类中实现。This method is not implemented in the BaseDataEnvironment class. |
| GetHashCode() |
作为默认哈希函数。Serves as the default hash function. (继承自 Object) |
| GetType() |
获取当前实例的 Type。Gets the Type of the current instance. (继承自 Object) |
| MemberwiseClone() |
创建当前 Object 的浅表副本。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) |