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
- aggregateException
Type: System.AggregateException
The AggregateException to unwrap and log
Return Value
Type: System.Exception
The unwrapped and logged exception.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.