dotConnect for MySQL Documentation
Filter Property
See Also  Example Send comments on this topic.
Devart.Common Namespace > DbMonitor Class : Filter Property

Specifies kinds of the events that are monitored. If this property is specifyed, any other events are ignored.


Visual Basic (Declaration) 
Public Property Filter As MonitorEventFilter
public MonitorEventFilter Filter {get; set;}

Property Value

One of the MonitorEventFilter values.


This property allows you to specify event types to send.


This example shows selecting connection open events and executing SQL statements for monitoring and turning off call stack sending.
C#csharpCopy Code
var monitor = new MySqlMonitor() { IsActive = true };
monitor.SendCallStack = false;
monitor.Filter = Devart.Common.MonitorEventFilter.OpenConnection | Devart.Common.MonitorEventFilter.Execute;
C#Visual BasicCopy Code
Dim monitor = New MySqlMonitor() With {
        .IsActive = True
monitor.SendCallStack = False
monitor.Filter = Devart.Common.MonitorEventFilter.OpenConnection Or Devart.Common.MonitorEventFilter.Execute


Platforms:Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7, Windows 8, Windows 10, Windows Server 2012 family.

See Also