Share via


TraceUtility.TraceException Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Namespace:  Microsoft.ManagementConsole.Internal
Assembly:  MMCFxCommon (in MMCFxCommon.dll)

Syntax

'Declaration
<ConditionalAttribute("TRACE")> _
Public Shared Sub TraceException ( _
    source As TraceSource, _
    severity As TraceEventType, _
    eventId As Integer, _
    ex As Exception, _
    message As String _
)
'Usage
Dim source As TraceSource
Dim severity As TraceEventType
Dim eventId As Integer
Dim ex As Exception
Dim message As String

TraceUtility.TraceException(source, severity, _
    eventId, ex, message)
[ConditionalAttribute("TRACE")]
public static void TraceException(
    TraceSource source,
    TraceEventType severity,
    int eventId,
    Exception ex,
    string message
)
[ConditionalAttribute(L"TRACE")]
public:
static void TraceException(
    TraceSource^ source, 
    TraceEventType severity, 
    int eventId, 
    Exception^ ex, 
    String^ message
)
public static function TraceException(
    source : TraceSource, 
    severity : TraceEventType, 
    eventId : int, 
    ex : Exception, 
    message : String
)
[<ConditionalAttribute("TRACE")>]
static member TraceException : 
        source:TraceSource * 
        severity:TraceEventType * 
        eventId:int * 
        ex:Exception * 
        message:string -> unit 

Parameters

.NET Framework Security

Platforms

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Framework

Supported in: 4, 3.5, 3.0

See Also

Reference

TraceUtility Class

TraceUtility Members

Microsoft.ManagementConsole.Internal Namespace