ObjectiveCMarshal.SetMessageSendPendingException(Exception) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
設定一個待處理例外,下一次從 Objective-C msgSend P/Invoke 輸入執行時會拋出。
public:
static void SetMessageSendPendingException(Exception ^ exception);
public static void SetMessageSendPendingException(Exception? exception);
static member SetMessageSendPendingException : Exception -> unit
Public Shared Sub SetMessageSendPendingException (exception As Exception)
參數
- exception
- Exception
例外。
備註
若 null 提供 ,任何待處理的例外都會被丟棄。