FilteringCriterion(MessageType, FilterBehavior) Constructor

Initializes a filtering criterion for checking the type of a CAN message.

Definition

Namespace: Peak.Can.Basic
Assembly: PCANBasic.NET (in PCANBasic.NET.dll) Version: 5.1.0
C#
public FilteringCriterion(
	MessageType messageTypeFlags,
	FilterBehavior behavior = FilterBehavior.Include
)

Parameters

messageTypeFlags  MessageType
A value indicating the allowed frame types.

  Note

The value Standard has to be specified alone as a FilteringCriterion value, if standard messages are wanted to be discarded.
behavior  FilterBehavior  (Optional)
Indicates the operation to perform when a CAN message matches this criterion.

See Also