View.GetError 方法

View 对象的 GetError 方法返回验证错误和发生错误的列名。 在自动化中,返回的值是 ##ColumnName 形式的字符串,其中 ## 表示 2 位错误代码。 它返回视图的错误数组中的第一个错误;后续调用返回错误数组中的下一个值。 返回值“00”后,不再存在更多错误,后续调用只会再次循环访问数组。

Syntax

View.GetError()

参数

此方法没有参数。

返回值

此方法返回发生错误的验证错误和列名。

要求

Requirement 价值
版本
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