OPC Studio User's Guide and Reference
IsValidEventSeverity(Int32) Method



OpcLabs.EasyOpcClassicCore Assembly > OpcLabs.EasyOpc.AlarmsAndEvents Namespace > AEUtilities Class > IsValidEventSeverity Method : IsValidEventSeverity(Int32) Method
The event severity to be tested.
Determines whether a given event severity value is valid in OPC Alarms&Events. Zero severities are not allowed.
Syntax
'Declaration
 
<PureAttribute()>
Public Overloads Shared Function IsValidEventSeverity( _
   ByVal eventSeverity As Integer _
) As Boolean
'Usage
 
Dim eventSeverity As Integer
Dim value As Boolean
 
value = AEUtilities.IsValidEventSeverity(eventSeverity)
[Pure()]
public static bool IsValidEventSeverity( 
   int eventSeverity
)
[Pure()]
public:
static bool IsValidEventSeverity( 
   int eventSeverity
) 

Parameters

eventSeverity
The event severity to be tested.

Return Value

true if eventSeverity is a valid event severity; false otherwise.
Remarks

This method or property does not throw any exceptions, aside from execution exceptions such as System.Threading.ThreadAbortException or System.OutOfMemoryException.

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