OPC Studio User's Guide and Reference
MakeDefaultMessage Method



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib Namespace > GenericError Class : MakeDefaultMessage Method
The code of the error.
Determines a default error message for the given error code.
Syntax
'Declaration
 
<LocalizationRequiredAttribute(True)>
<NotNullAttribute()>
Protected Shared Function MakeDefaultMessage( _
   ByVal code As Enum _
) As String
'Usage
 
Dim code As Enum
Dim value As String
 
value = GenericError.MakeDefaultMessage(code)
[LocalizationRequired(true)]
[NotNull()]
protected static string MakeDefaultMessage( 
   Enum code
)
[LocalizationRequired(true)]
[NotNull()]
protected:
static String^ MakeDefaultMessage( 
   Enum^ code
) 

Parameters

code
The code of the error.

Return Value

Returns a default error message.
Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also