Share via


ExceptionHandler.ShouldHandle Method (ExceptionHandlerContext)

 

Determines whether the exception should be handled.

Namespace:   System.Web.Http.ExceptionHandling
Assembly:  System.Web.Http (in System.Web.Http.dll)

Syntax

public virtual bool ShouldHandle(
    ExceptionHandlerContext context
)
public:
virtual bool ShouldHandle(
    ExceptionHandlerContext^ context
)
abstract ShouldHandle : 
        context:ExceptionHandlerContext -> bool
override ShouldHandle : 
        context:ExceptionHandlerContext -> bool
Public Overridable Function ShouldHandle (
    context As ExceptionHandlerContext
) As Boolean

Parameters

Return Value

Type: System.Boolean

true if the exception should be handled; otherwise, false.

See Also

ExceptionHandler Class
System.Web.Http.ExceptionHandling Namespace

Return to top