dotConnect Universal Documentation
Devart.Common Namespace / DbMonitor Class / SendCallStack Property
Example

In This Topic
    SendCallStack Property
    In This Topic
    Disables or enables sending call stack of the events to dbMonitor application.
    Syntax
    'Declaration
     
    Public Property SendCallStack As Boolean
    public bool SendCallStack {get; set;}

    Property Value

    true if sending the call stack is enabled; otherwise, false.
    Remarks
    Sending a call stack is a costly operation, which can hamper performance. If you don't need call stacks of the events, use this property to turn off sending call stacks.
    Example
    This example shows selecting connection open events and executing SQL statements for monitoring and turning off call stack sending.
    var monitor = new UniMonitor() { IsActive = true };
    monitor.SendCallStack = false;
    monitor.Filter = Devart.Common.MonitorEventFilter.OpenConnection | Devart.Common.MonitorEventFilter.Execute;
    Dim monitor = New UniMonitor() With {
    .IsActive = True
                    }
    monitor.SendCallStack = False
    monitor.Filter = Devart.Common.MonitorEventFilter.OpenConnection Or Devart.Common.MonitorEventFilter.Execute
    See Also