dotConnect for Zoho CRM Documentation
Devart.Common Namespace / DbMonitor Class / Filter Property
Example

In This Topic
    Filter Property
    In This Topic
    Specifies kinds of the events that are monitored. If this property is specifyed, any other events are ignored.
    Syntax
    'Declaration
     
    Public Property Filter As MonitorEventFilter
    public MonitorEventFilter Filter {get; set;}

    Property Value

    One of the MonitorEventFilter values.
    Remarks
    This property allows you to specify event types to send.
    Example
    This example shows selecting connection open events and executing SQL statements for monitoring and turning off call stack sending.
    var monitor = new ZohoMonitor() { IsActive = true };
    monitor.SendCallStack = false;
    monitor.Filter = Devart.Common.MonitorEventFilter.OpenConnection | Devart.Common.MonitorEventFilter.Execute;
    Dim monitor = New ZohoMonitor() With {
            .IsActive = True
            }
    monitor.SendCallStack = False
    monitor.Filter = Devart.Common.MonitorEventFilter.OpenConnection Or Devart.Common.MonitorEventFilter.Execute
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also