Traces all information for the specified exception and trace type
to the log.
Namespace:
Microsoft.ConfigurationManagement.AdminConsole
Assembly:
Microsoft.ConfigurationManagement.ManagementProvider (in
microsoft.configurationmanagement.managementprovider.dll)
Usage
Visual Basic |
Dim ex As Exception
Dim traceType As TraceEventType
ExceptionUtilities.TraceException(ex, traceType)
|
Syntax
Visual Basic |
Public Shared Sub TraceException ( _
ex As Exception, _
traceType As TraceEventType _
)
|
C# |
public static void TraceException (
Exception ex,
TraceEventType traceType
)
|
C++ |
public:
static void TraceException (
Exception^ ex,
TraceEventType traceType
)
|
J# |
public static void TraceException (
Exception ex,
TraceEventType traceType
)
|
JScript |
public static function TraceException (
ex : Exception,
traceType : TraceEventType
)
|
Parameters
- ex
-
[in] System.Exception object.
- traceType
-
[in] System.Diagnostics.TraceEventType object for the trace
type.
Exceptions
Exception type |
Condition |
ArgumentNullException
|
The ex parameter cannot be null.
|
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
Development Platforms
Windows Server 2003, Windows Vista
Target Platforms
Windows Server 2003,Windows Vista
See Also