JSException(String) 建構函式

定義

初始化一個新的 JSException 類別實例,並指定錯誤訊息。

public:
 JSException(System::String ^ msg);
public JSException(string msg);
new System.Runtime.InteropServices.JavaScript.JSException : string -> System.Runtime.InteropServices.JavaScript.JSException
Public Sub New (msg As String)

參數

msg
String

描述錯誤的訊息。

適用於