![Copy image Copy image](copycode.gif)
![CopyHover image CopyHover image](copycodeHighlight.gif)
Deployment Tools Foundation
GetErrorMessage Method (errorRecord, culture)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.WindowsInstaller ► Installer ► GetErrorMessage(Record, CultureInfo)
Gets a formatted Windows Installer error message in a specified language.
![](collapse_all.gif)
C# | Visual Basic | Visual C++ | F# |
public static string GetErrorMessage( Record errorRecord, CultureInfo culture )
Public Shared Function GetErrorMessage ( errorRecord As Record, culture As CultureInfo ) As String
public: static String^ GetErrorMessage( Record^ errorRecord, CultureInfo^ culture )
static member GetErrorMessage : errorRecord : Record * culture : CultureInfo -> string
![](collapse_all.gif)
- errorRecord (Record)
- Error record containing the error number in the first field, and error-specific parameters in the other fields.
- culture (CultureInfo)
- The locale for the message.
![](collapse_all.gif)
String
The message string, or null if the error message or locale is not found.
The message string, or null if the error message or locale is not found.
![](collapse_all.gif)
Error numbers greater than 2000 refer to MSI "internal" errors, and are always returned in English.
Assembly: Microsoft.Deployment.WindowsInstaller (Module: Microsoft.Deployment.WindowsInstaller.dll) Version: 3.0.0.0 (3.11.1.2318)