ExceptionDispatchInfo.Throw Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Överlagringar
| Name | Description |
|---|---|
| Throw() |
Genererar undantaget som representeras av det aktuella ExceptionDispatchInfo objektet efter att ha återställt det tillstånd som sparades när undantaget registrerades. |
| Throw(Exception) |
Genererar källfelet, underhåller den ursprungliga Watson-informationen och utökar i stället för att ersätta den ursprungliga stackspårningen. |
Throw()
- Källa:
- ExceptionDispatchInfo.cs
- Källa:
- ExceptionDispatchInfo.cs
- Källa:
- ExceptionDispatchInfo.cs
- Källa:
- ExceptionDispatchInfo.cs
- Källa:
- ExceptionDispatchInfo.cs
Genererar undantaget som representeras av det aktuella ExceptionDispatchInfo objektet efter att ha återställt det tillstånd som sparades när undantaget registrerades.
public:
void Throw();
public void Throw();
member this.Throw : unit -> unit
Public Sub Throw ()
Kommentarer
När undantaget återställs infogas följande sträng i stackspårningen för att ange återställningspunkten: "End of stack trace from the previous location where the exception was thrown". Detta liknar hur inre undantag eller undantag som konverteras anges i stackspårningar.
Gäller för
Throw(Exception)
- Källa:
- ExceptionDispatchInfo.cs
- Källa:
- ExceptionDispatchInfo.cs
- Källa:
- ExceptionDispatchInfo.cs
- Källa:
- ExceptionDispatchInfo.cs
- Källa:
- ExceptionDispatchInfo.cs
Genererar källfelet, underhåller den ursprungliga Watson-informationen och utökar i stället för att ersätta den ursprungliga stackspårningen.
public:
static void Throw(Exception ^ source);
public static void Throw(Exception source);
static member Throw : Exception -> unit
Public Shared Sub Throw (source As Exception)
Parametrar
- source
- Exception
Undantaget vars tillstånd fångas och sedan återväxas.