<完成錯誤對象參考
HelpContext屬性返回一個長值是在Microsoft Windows幫助系統主題的上下文ID。
此屬性允許您使用Windows的幫助系統進行交互,即你可以調用Windows API函數的幫助。
HelpContext屬性返回零,如果你沒有獲得與Windows的幫助系統進行交互。
句法
lngErrorContext=objErr.HelpContext
例
<%
for each objErr in objConn.Errors
response.write("<p>")
response.write("Description: ")
response.write(objErr.Description & "<br>")
response.write("Help context: ")
response.write(objErr.HelpContext & "<br>")
response.write("Help file: ")
response.write(objErr.HelpFile & "<br>")
response.write("Native error: ")
response.write(objErr.NativeError & "<br>")
response.write("Error number: ")
response.write(objErr.Number & "<br>")
response.write("Error source: ")
response.write(objErr.Source & "<br>")
response.write("SQL state: ")
response.write(objErr.SQLState & "<br>")
response.write("</p>")
next
%>
<完成錯誤對象參考