View.GetError 方法
View 对象的 GetError 方法返回验证错误和发生错误的列名。 在自动化中,返回值是 ##ColumnName 形式的字符串,其中 ## 表示 2 位数的错误代码。 它返回视图的错误数组中的第一个错误;后续调用将返回错误数组中的下一个值。 返回值“00”后,不再存在更多错误,后续调用只会再次循环访问数组。
语法
View.GetError()
parameters
此方法没有任何参数。
返回值
此方法不返回值。
要求
要求 | 值 |
---|---|
版本 |
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 |
|
IID |
IID_IView 定义为 000C109C-0000-0000-C000-000000000046 |
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈