Error.AsWarning Method (Exception)

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Unwraps and logs an Exception as Warning.

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

Syntax

'Declaration
Public Shared Function AsWarning ( _
    exception As Exception _
) As Exception
public static Exception AsWarning(
    Exception exception
)
public:
static Exception^ AsWarning(
    Exception^ exception
)
static member AsWarning : 
        exception:Exception -> Exception 
public static function AsWarning(
    exception : Exception
) : Exception

Parameters

Return Value

Type: System.Exception
The unwrapped and logged exception.

.NET Framework Security

See Also

Reference

Error Class

AsWarning Overload

System.Web.Http.Common Namespace