DynamicsBaseHostedControl.LogException Method (String, TraceEventType, Exception)

 

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

Logs an exception with user-provided error message and 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(
    string errorMessage,
    TraceEventType eventType,
    Exception ex
)
Protected Sub LogException (
    errorMessage As String,
    eventType As TraceEventType,
    ex As Exception
)

Parameters

  • errorMessage
    Type: System.String

    The user-provided error message to log.

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