ExceptionDispatchInfo.SourceException Proprietà

Definizione

Ottiene l'eccezione rappresentata dall'istanza corrente.

public:
 property Exception ^ SourceException { Exception ^ get(); };
public Exception SourceException { get; }
member this.SourceException : Exception
Public ReadOnly Property SourceException As Exception

Valore della proprietà

Eccezione rappresentata dall'istanza corrente.

Commenti

Questa proprietà viene utilizzata da Task Parallel Library, ad esempio per combinare più eccezioni in un AggregateException oggetto . Non è progettato per essere usato dal codice dell'applicazione. Usare il Throw metodo per ripristinare lo stato dell'eccezione acquisita e generarlo.

Si applica a