ExceptionExtensions.Unwind Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Unwind(Exception) |
Unwinds the inner exceptions from a given exception. |
Unwind(Exception, Type[]) |
Unwinds the inner exceptions from a given exception. |
Unwind<TException>(Exception) |
Unwinds the inner exceptions from a given exception. |
Unwind(Exception)
Unwinds the inner exceptions from a given exception.
public static System.Collections.Generic.IEnumerable<Exception> Unwind (this Exception exception);
static member Unwind : Exception -> seq<Exception>
<Extension()>
Public Iterator Function Unwind (exception As Exception) As IEnumerable(Of Exception)
Parameters
- exception
- Exception
The exception to unwind.
Returns
The list of inner exceptions within the specified exception.
Applies to
Unwind(Exception, Type[])
Unwinds the inner exceptions from a given exception.
public static System.Collections.Generic.IEnumerable<Exception> Unwind (this Exception exception, params Type[] targetTypes);
static member Unwind : Exception * Type[] -> seq<Exception>
<Extension()>
Public Function Unwind (exception As Exception, ParamArray targetTypes As Type()) As IEnumerable(Of Exception)
Parameters
- exception
- Exception
The exception to unwind.
- targetTypes
- Type[]
The list of types that the inner exception should be an instance of.
Returns
The list of inner exceptions within the specified exception that are an instance of the supplied target types.
Applies to
Unwind<TException>(Exception)
Unwinds the inner exceptions from a given exception.
public static System.Collections.Generic.IEnumerable<TException> Unwind<TException> (this Exception exception);
static member Unwind : Exception -> seq<'Exception>
<Extension()>
Public Function Unwind(Of TException) (exception As Exception) As IEnumerable(Of TException)
Type Parameters
- TException
The type of exception that the inner exception should be an instance of.
Parameters
- exception
- Exception
The exception to unwind.
Returns
The list of inner exceptions within the specified exception that are an instance of the supplied target type.
Applies to
Commenti e suggerimenti
https://aka.ms/ContentUserFeedback.
Presto disponibile: Nel corso del 2024 verranno gradualmente disattivati i problemi di GitHub come meccanismo di feedback per il contenuto e ciò verrà sostituito con un nuovo sistema di feedback. Per altre informazioni, vedereInvia e visualizza il feedback per