Opc.Ua.Server.MonitoredItem.ApplyFilter C# (CSharp) Method

ApplyFilter() protected method

Applies the filter to value to determine if the new value should be kept.
protected ApplyFilter ( DataValue value, ServiceResult error ) : bool
value DataValue
error ServiceResult
return bool
		protected virtual bool ApplyFilter(DataValue value, ServiceResult error)
		{
            if (value == null) throw new ArgumentNullException("value");

            bool changed = ValueChanged(
                value,
                error,
                m_lastValue,
                m_lastError,
                m_filterToUse as DataChangeFilter,
                m_range);

            return changed;
        }