DynamicsBaseHostedControl.LogException Method (Exception, TraceEventType)

 

Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2013, Dynamics CRM 2015, Dynamics CRM 2016

Logs an exception with information about the trace event type that caused the exception.

Namespace:   Microsoft.Crm.UnifiedServiceDesk.Dynamics
Assembly:  Microsoft.Crm.UnifiedServiceDesk.Dynamics (in Microsoft.Crm.UnifiedServiceDesk.Dynamics.dll)

Syntax

protected void LogException(
    Exception ex,
    TraceEventType eventType = TraceEventType.Error
)
Protected Sub LogException (
    ex As Exception,
    eventType As TraceEventType
)

Parameters

  • eventType
    Type: System.Diagnostics.TraceEventType

    Optional. The trace event type that caused the exception. If you do not specify the event type, by default Error trace event type is passed.

See Also

LogException Overload
DynamicsBaseHostedControl Class
Microsoft.Crm.UnifiedServiceDesk.Dynamics Namespace
Configure enhanced diagnostic logging for custom hosted controls

Return to top

Unified Service Desk 2.0

© 2017 Microsoft. All rights reserved. Copyright