Determines whether the specified exception is critical enough to cause the process to crash for the supplied trace level. Namespace: Microsoft.ConfigurationManagement.AdminConsole
Assembly: Microsoft.ConfigurationManagement.ManagementProvider (in microsoft.configurationmanagement.managementprovider.dll)

Usage

Visual Basic
Dim ex As Exception
Dim noncritialTraceLevel As TraceEventType
Dim returnValue As Boolean

returnValue = ExceptionUtilities.IsUICriticalException(ex, noncritialTraceLevel)

Syntax

Visual Basic
Public Shared Function IsUICriticalException ( _
		ex As Exception, _
		noncritialTraceLevel As TraceEventType _
) As Boolean
C#
public static bool IsUICriticalException (
		Exception ex,
		TraceEventType noncritialTraceLevel
)
C++
public:
static bool IsUICriticalException (
		Exception^ ex, 
		TraceEventType noncritialTraceLevel
)
J#
public static boolean IsUICriticalException (
		Exception ex, 
		TraceEventType noncritialTraceLevel
)
JScript
public static function IsUICriticalException (
		ex : Exception, 
		noncritialTraceLevel : TraceEventType
) : boolean

Parameters

ex

[in] System.Exception object.

noncritialTraceLevel

[in] System.Diagnostics.TraceEventType object for the noncritical trace level.

Return Value

true if the exception is critical enough to cause the process to crash; otherwise false.

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