ErrorMessages.LoadErrorMessage Method (Int32, String)
Gets the error message string from the specified module for an error code.
Namespace: Microsoft.ConfigurationManagement.AdminConsole
Assembly: Microsoft.ConfigurationManagement (in microsoft.configurationmanagement.dll)
Usage
'Usage
Dim errorCode As Integer
Dim moduleName As String
Dim returnValue As String
returnValue = ErrorMessages.LoadErrorMessage(errorCode, moduleName)
Syntax
'Declaration
Public Shared Function LoadErrorMessage ( _
errorCode As Integer, _
moduleName As String _
) As String
public static string LoadErrorMessage (
int errorCode,
string moduleName
)
public:
static String^ LoadErrorMessage (
int errorCode,
String^ moduleName
)
public static String LoadErrorMessage (
int errorCode,
String moduleName
)
public static function LoadErrorMessage (
errorCode : int,
moduleName : String
) : String
Parameters
- errorCode
[in] Integer indicating the error code.
- moduleName
[in] Name of the module from which to get the error message string.
Return Value
Error message string.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows Server 2003, Windows Vista
Target Platforms
Windows Server 2003,Windows Vista
See Also
Reference
ErrorMessages Class
ErrorMessages Members
Microsoft.ConfigurationManagement.AdminConsole Namespace