QuickOPC User's Guide and Reference
IsValidEventSeverity(Int32,Boolean) Method



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

Parameters

eventSeverity
The event severity to be tested.
allowZero
Indicates that zero represents a valid event severity for the test.

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