Partager via


Logging.LogException Method (Exception, String, CSEntry, Boolean)

Logs an exception with information about the calling method, entry in the connector space, and whether the exception was caught and handled.

Namespace: Microsoft.MetadirectoryServices.Logging
Assembly: Logging (in Logging.dll)

Usage

'Usage
Dim ex As Exception
Dim caller As String
Dim csentry As CSEntry
Dim handledException As Boolean

Logging.LogException(ex, caller, csentry, handledException)

Syntax

'Declaration
Public Shared Sub LogException ( _
    ex As Exception, _
    caller As String, _
    csentry As CSEntry, _
    handledException As Boolean _
)
public static void LogException (
    Exception ex,
    string caller,
    CSEntry csentry,
    bool handledException
)
public:
static void LogException (
    Exception^ ex, 
    String^ caller, 
    CSEntry^ csentry, 
    bool handledException
)
public static void LogException (
    Exception ex, 
    String caller, 
    CSEntry csentry, 
    boolean handledException
)
public static function LogException (
    ex : Exception, 
    caller : String, 
    csentry : CSEntry, 
    handledException : boolean
)

Parameters

  • ex
    The exception to log.
  • caller
    The name of the method in which the exception occurred.
  • csentry
    The entry in the connector space where the exception occurred.
  • handledException
    Whether the exception was caught and handled.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Target Platforms

See Also

Reference

Logging Class
Logging Members
Microsoft.MetadirectoryServices.Logging Namespace
Logging Class
Logging Class