ServicesExtensions.GetExceptionHandler Method (ServicesContainer)

 

Returns the registered unhandled exception handler, if any.

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

Syntax

public static IExceptionHandler GetExceptionHandler(
    this ServicesContainer services
)
public:
[ExtensionAttribute]
static IExceptionHandler^ GetExceptionHandler(
    ServicesContainer^ services
)
static member GetExceptionHandler : 
        services:ServicesContainer -> IExceptionHandler
<ExtensionAttribute>
Public Shared Function GetExceptionHandler (
    services As ServicesContainer
) As IExceptionHandler

Parameters

Return Value

Type: System.Web.Http.ExceptionHandling.IExceptionHandler

The registered unhandled exception hander, if present; otherwise, null.

See Also

ServicesExtensions Class
System.Web.Http Namespace

Return to top