ExceptionDispatchInfo.Throw Méthode

Définition

Surcharges

Throw()

Lève l’exception représentée par l’objet actuel ExceptionDispatchInfo , après avoir restauré l’état qui a été enregistré lors de la capture de l’exception.

Throw(Exception)

Lève l’exception source, en conservant les informations Watson d’origine et en augmentant au lieu de remplacer la trace de la pile d’origine.

Throw()

Source:
ExceptionDispatchInfo.cs
Source:
ExceptionDispatchInfo.cs
Source:
ExceptionDispatchInfo.cs

Lève l’exception représentée par l’objet actuel ExceptionDispatchInfo , après avoir restauré l’état qui a été enregistré lors de la capture de l’exception.

public:
 void Throw();
public void Throw ();
member this.Throw : unit -> unit
Public Sub Throw ()

Remarques

Lorsque l’exception est restaurée, la chaîne suivante est insérée dans la trace de pile pour indiquer le point de restauration : "End of stack trace from the previous location where the exception was thrown". Cela est similaire à la façon dont les exceptions internes ou les exceptions marshalées sont indiquées dans les traces de pile.

S’applique à

Throw(Exception)

Source:
ExceptionDispatchInfo.cs
Source:
ExceptionDispatchInfo.cs
Source:
ExceptionDispatchInfo.cs

Lève l’exception source, en conservant les informations Watson d’origine et en augmentant au lieu de remplacer la trace de la pile d’origine.

public:
 static void Throw(Exception ^ source);
public static void Throw (Exception source);
static member Throw : Exception -> unit
Public Shared Sub Throw (source As Exception)

Paramètres

source
Exception

Exception dont l’état est capturé, puis levé à nouveau.

S’applique à