Error.AsInformation<TPreferredException> Method (AggregateException)

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

Unwraps and logs an AggregateException as Info using TPreferredException as the preferred unwrapped Exception to return.

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

Syntax

'Declaration
Public Shared Function AsInformation(Of TPreferredException) ( _
    aggregateException As AggregateException _
) As Exception
public static Exception AsInformation<TPreferredException>(
    AggregateException aggregateException
)
public:
generic<typename TPreferredException>
static Exception^ AsInformation(
    AggregateException^ aggregateException
)
static member AsInformation : 
        aggregateException:AggregateException -> Exception 
JScript does not support generic types or methods.

Type Parameters

  • TPreferredException
    The preferred Type to unwrap. If not present then the first Exception is returned instead.

Parameters

Return Value

Type: System.Exception
The unwrapped and logged exception.

.NET Framework Security

See Also

Reference

Error Class

AsInformation Overload

System.Web.Http.Common Namespace