Redigera

Dela via


View.GetError method

The GetError method of the View object returns the Validation error and the column name for which the error occurred. In automation, the returned value is a string of the form ##ColumnName, where the ## represents a 2-digit error code. It returns the first error in the view's error array; subsequent calls return the next value in the error array. Once a value of '00' is returned, no more errors exist, and subsequent calls merely loop through the array again.

Syntax

View.GetError()

Parameters

This method has no parameters.

Return value

This method does not return a value.

Requirements

Requirement Value
Version
Windows Installer 5.0 on Windows Server 2012, Windows 8, Windows Server 2008 R2 or Windows 7. Windows Installer 4.0 or Windows Installer 4.5 on Windows Server 2008 or Windows Vista. Windows Installer on Windows Server 2003 or Windows XP
DLL
Msi.dll
IID
IID_IView is defined as 000C109C-0000-0000-C000-000000000046