共用方式為


ErrorObject.Explicit(ErrorObject to Exception) 運算子

定義

ErrorObject 明確轉換成 Exception

public:
 static explicit operator Exception ^(Microsoft::JScript::ErrorObject ^ err);
public static explicit operator Exception (Microsoft.JScript.ErrorObject err);
static member op_Explicit : Microsoft.JScript.ErrorObject -> Exception
Public Shared Narrowing Operator CType (err As ErrorObject) As Exception

參數

err
ErrorObject

要轉換的物件。

傳回

Exception

已轉換的 ErrorObject

適用於

另請參閱