AddEventFilter Method
- Last UpdatedAug 21, 2026
- 1 minute read
Adds the event filter.
'Declaration
Public Function AddEventFilter( _
ByVal propertyName As String, _
ByVal comparisonType As HistorianComparisionType, _
ByVal propertyValue As Object, _
ByRef error As HistorianAccessError _
) As UInteger
'Usage
Dim instance As EventQuery
Dim propertyName As String
Dim comparisonType As HistorianComparisionType
Dim propertyValue As Object
Dim error As HistorianAccessError
Dim value As UInteger
value = instance.AddEventFilter(propertyName, comparisonType, propertyValue, error)
public uint AddEventFilter(
string propertyName,
HistorianComparisionType comparisonType,
object propertyValue,
out HistorianAccessError error
)
public:
uint AddEventFilter(
String^ propertyName,
HistorianComparisionType comparisonType,
Object^ propertyValue,
[Out] HistorianAccessError^ error
)
Parameters
- propertyName
- Name of the property.
- comparisonType
- Type of the comparison.
- propertyValue
- The property value for the comparison.
- error
- The error.
Return Value
Returns the filter ID.