Compartir a través de


ExceptionUtilities.IsUICriticalException Method (Exception, TraceEventType)

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

'Usage
Dim ex As Exception
Dim noncritialTraceLevel As TraceEventType
Dim returnValue As Boolean

returnValue = ExceptionUtilities.IsUICriticalException(ex, noncritialTraceLevel)

Syntax

'Declaration
Public Shared Function IsUICriticalException ( _
    ex As Exception, _
    noncritialTraceLevel As TraceEventType _
) As Boolean
public static bool IsUICriticalException (
    Exception ex,
    TraceEventType noncritialTraceLevel
)
public:
static bool IsUICriticalException (
    Exception^ ex, 
    TraceEventType noncritialTraceLevel
)
public static boolean IsUICriticalException (
    Exception ex, 
    TraceEventType noncritialTraceLevel
)
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

Reference

ExceptionUtilities Class
ExceptionUtilities Members
Microsoft.ConfigurationManagement.AdminConsole Namespace