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
- source
Type: System.Diagnostics.TraceSource
- severity
Type: System.Diagnostics.TraceEventType
- eventId
Type: System.Int32
- ex
Type: System.Exception
- message
Type: System.String
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
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