close

string strErrorLine = new System.Diagnostics.StackTrace(ex, true).GetFrame(0).GetFileLineNumber().ToString();
string currentName = new System.Diagnostics.StackTrace(ex, true).GetFrame(0).GetMethod().Name;
string callName = new System.Diagnostics.StackTrace(ex, true).GetFrame(0).GetFileName();

string strBodyMsg = "";
strBodyMsg += "訊息提示: " + ex.Message.ToString() + "<br>";
strBodyMsg += "錯誤行數: " + strErrorLine + "<br>";
strBodyMsg += "錯誤檔案: " + callName + "<br>";
strBodyMsg += "呼叫方法: " + currentName + "<br>";

印出文字資料.....以下略

 

 


arrow
arrow

    Roger 發表在 痞客邦 留言(0) 人氣()