AddEventFilterCondition Method
- Last UpdatedAug 21, 2026
- 1 minute read
Adds the event filter condition.
'Declaration
Public Function AddEventFilterCondition( _
ByVal filterIndex As Integer, _
ByVal propertyName As String, _
ByVal comparisonType As HistorianComparisionType, _
ByVal propertyValue As Object, _
ByRef error As HistorianAccessError _
) As Boolean
'Usage
Dim instance As EventQuery
Dim filterIndex As Integer
Dim propertyName As String
Dim comparisonType As HistorianComparisionType
Dim propertyValue As Object
Dim error As HistorianAccessError
Dim value As Boolean
value = instance.AddEventFilterCondition(filterIndex, propertyName, comparisonType, propertyValue, error)
public bool AddEventFilterCondition(
int filterIndex,
string propertyName,
HistorianComparisionType comparisonType,
object propertyValue,
out HistorianAccessError error
)
public:
bool AddEventFilterCondition(
int filterIndex,
String^ propertyName,
HistorianComparisionType comparisonType,
Object^ propertyValue,
[Out] HistorianAccessError^ error
)
Parameters
- filterIndex
- Index of the filter.
- propertyName
- Name of the property.
- comparisonType
- Type of the comparison.
- propertyValue
- The property value for the comparison.
- error
- The error.
Return Value
Returns true if the method suceeds.