InvocationTargetException.TargetException 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得投擲目標例外。
public virtual Java.Lang.Throwable? TargetException { [Android.Runtime.Register("getTargetException", "()Ljava/lang/Throwable;", "GetGetTargetExceptionHandler")] get; }
[<get: Android.Runtime.Register("getTargetException", "()Ljava/lang/Throwable;", "GetGetTargetExceptionHandler")>]
member this.TargetException : Java.Lang.Throwable
屬性值
投擲目標例外(導致此例外)。
- 屬性
備註
取得投擲目標例外。
此方法早於通用例外鏈接功能。 此 Throwable#getCause() 方法現已成為獲取這些資訊的首選方式。
Java 文件 java.lang.reflect.InvocationTargetException.getTargetException()。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。