OPCAE.NET Reference Manual
GetFilter Method
See Also  Send Feedback
OPCAE.NET Namespace > EventSubscriptionMgt Class : GetFilter Method

EventType
A bit map specifying which event types are of allowed through the filter; OPC_SIMPLE_EVENT, OPC_CONDITION_EVENT, OPC_TRACKING_EVENT, OPC_ALL_EVENTS. These types can be OR’ed together to filter multiple types.
EventCategories
Array of event categories for the filter.
LowSeverity
Lowest severity allowed through filter. If the server does not support filtering on severity, the returned value will be 1.
HighSeverity
Highest severity allowed through filter. If the server does not support filtering on severity, the returned value will be 1000.
AreaList
List of process areas for the filter.
SourceList
List of sources for the filter.

Glossary Item Box

Returns the filter currently in use for event subscriptions.

Syntax

Visual Basic (Declaration) 
Public Function GetFilter( _
   ByRef EventType As Integer, _
   ByRef EventCategories As Integer(), _
   ByRef LowSeverity As Integer, _
   ByRef HighSeverity As Integer, _
   ByRef AreaList As String(), _
   ByRef SourceList As String() _
) As Integer

Parameters

EventType
A bit map specifying which event types are of allowed through the filter; OPC_SIMPLE_EVENT, OPC_CONDITION_EVENT, OPC_TRACKING_EVENT, OPC_ALL_EVENTS. These types can be OR’ed together to filter multiple types.
EventCategories
Array of event categories for the filter.
LowSeverity
Lowest severity allowed through filter. If the server does not support filtering on severity, the returned value will be 1.
HighSeverity
Highest severity allowed through filter. If the server does not support filtering on severity, the returned value will be 1000.
AreaList
List of process areas for the filter.
SourceList
List of sources for the filter.

Return Value

HRESULTS error/success code.

Requirements

Target Platforms: Windows 7/8/10, Windows Server 2003/2008/2012/2016, .NET 4.x

See Also

© 2002-2018 Advosol Inc. All Rights Reserved.