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 As Integer, _
ByVal 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 ,
bool
)
[Pure()]
public:
static bool IsValidEventSeverity(
int ,
bool
)
Parameters
- eventSeverity
- The event severity to be tested.
- allowZero
- Indicates that zero represents a valid event severity for the test.
Return Value
true
if is a valid event severity; false
otherwise.
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