_Exception.InnerException Proprietà

Definizione

Fornisce oggetti COM con accesso indipendente dalla versione alla proprietà InnerException.

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

Valore della proprietà

Exception

Istanza di Exception in cui viene descritto l'errore che ha causato l'eccezione corrente. La proprietà InnerException restituisce lo stesso valore passato al costruttore, oppure un riferimento null (Nothing in Visual Basic) se il valore dell'eccezione interna non è stato fornito al costruttore. Questa proprietà è di sola lettura.

Commenti

Questo metodo consente l'accesso alle classi gestite da codice non gestito e non deve essere chiamato dal codice gestito.

La Exception.InnerException proprietà ottiene l' Exception istanza di che ha causato l'eccezione corrente.

Si applica a

Vedi anche