共用方式為


View.GetError 方法

View物件的GetError方法會傳回驗證錯誤,以及發生錯誤的資料行名稱。 在自動化中,傳回的值是格式 ##ColumnName的字串,其中 ## 代表 2 位數的錯誤碼。 它會傳回檢視錯誤陣列中的第一個錯誤;後續呼叫會傳回錯誤陣列中的下一個值。 傳回 '00' 的值之後,就不會再發生任何錯誤,後續的呼叫只會再次迴圈執行陣列。

語法

View.GetError()

參數

這個方法沒有任何參數。

傳回值

這個方法不會傳回值。

規格需求

需求
版本
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