|
ObjectUtilityToException Method |
Convert a aggregate exception to a unique exception
Namespace: DrawerBackup.Native.RuntimeAssembly: DrawerBackup.Native (in DrawerBackup.Native.dll) Version: 0.0.1.1 (0.0.1.1)
Syntaxpublic static Exception ToException(
this AggregateException exception
)
<ExtensionAttribute>
Public Shared Function ToException (
exception As AggregateException
) As Exception
public:
[ExtensionAttribute]
static Exception^ ToException(
AggregateException^ exception
)
[<ExtensionAttribute>]
static member ToException :
exception : AggregateException -> Exception
Parameters
- exception
- Type: SystemAggregateException
Return Value
Type:
ExceptionUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
AggregateException. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also