共用方式為


'<variablename>' 不是區域變數或參數,所以不能當做 'Catch' 變數使用

更新:2007 年 11 月

Try...Catch...Finally 陳述式中的變數必須在區域中宣告,或當成目前程序的參數。

錯誤 ID:BC31082

若要更正這個錯誤

  • 宣告 Try...Catch...Finally 陳述式的區域變數或參數。

請參閱

參考

Try...Catch...Finally 陳述式 (Visual Basic)