QuickOPC User's Guide and Reference
IsValidEventTypeFilter(Int64,Boolean) Method



OpcLabs.EasyOpcClassicCore Assembly > OpcLabs.EasyOpc.AlarmsAndEvents Namespace > AEUtilities Class > IsValidEventTypeFilter Method : IsValidEventTypeFilter(Int64,Boolean) Method
The event type filter to be tested.
Indicates that empty filter is valid for the test.
Determines whether a given event type filter value is valid in OPC Alarms&Events. You can choose whether empty event type filters are also allowed.
Syntax
'Declaration
 
<PureAttribute()>
Public Overloads Shared Function IsValidEventTypeFilter( _
   ByVal eventTypeFilter As Long, _
   ByVal allowEmpty As Boolean _
) As Boolean
'Usage
 
Dim eventTypeFilter As Long
Dim allowEmpty As Boolean
Dim value As Boolean
 
value = AEUtilities.IsValidEventTypeFilter(eventTypeFilter, allowEmpty)
[Pure()]
public static bool IsValidEventTypeFilter( 
   long eventTypeFilter,
   bool allowEmpty
)
[Pure()]
public:
static bool IsValidEventTypeFilter( 
   int64 eventTypeFilter,
   bool allowEmpty
) 

Parameters

eventTypeFilter
The event type filter to be tested.
allowEmpty
Indicates that empty filter is valid for the test.

Return Value

true if eventTypeFilter is a valid event type filter; 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