語言

ObjectiveCMarshal.SetMessageSendPendingException(Exception) 方法

定義

設定一個待處理例外,下一次從 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 提供 ,任何待處理的例外都會被丟棄。

適用於