View.Close 方法

View 对象的 Close 方法终止查询执行并释放数据库资源。

语法

View.Close()

parameters

此方法没有任何参数。

返回值

此方法不返回值。

备注

必须先调用该方法,才能再在 View 对象上调用 Execute 方法,除非已使用 Fetch 方法获取结果集的所有行。 当视图被销毁时,会在内部调用该方法。

要求

要求 值
版本
Windows Server 2012、Windows 8、Windows Server 2008 R2 或 Windows 7 上的 Windows Installer 5.0。 Windows Server 2008 或 Windows Vista 上的 Windows Installer 4.0 或 Windows Installer 4.5。 Windows Server 2003 或 Windows XP 上的 Windows Installer
DLL
Msi.dll
IID
IID_IView 定义为 000C109C-0000-0000-C000-000000000046