Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
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
'Usage
Dim ex As Exception
Dim traceType As TraceEventType
ExceptionUtilities.TraceException(ex, traceType)
Syntax
'Declaration
Public Shared Sub TraceException ( _
ex As Exception, _
traceType As TraceEventType _
)
public static void TraceException (
Exception ex,
TraceEventType traceType
)
public:
static void TraceException (
Exception^ ex,
TraceEventType traceType
)
public static void TraceException (
Exception ex,
TraceEventType traceType
)
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
Reference
ExceptionUtilities Class
ExceptionUtilities Members
Microsoft.ConfigurationManagement.AdminConsole Namespace