خصوصية Description لـ ADO

التعريف والاستخدام

يمكن لخصوصية Description العودة إلى نص يصف الخطأ.

هذه هي الخاصية الافتراضية لعملاً Error. يمكن أن يكون المزود أو ADO مصدر الأخطاء.

المزود مسؤول عن تقديم النص الإخطار المحدد إلى ADO. لكل خطأ أو تحذير يتلقيه المزود، يضيف ADO عملاً Error إلى مجموعة Errors. يتم مراجعة مجموعة Errors للتحقق من الأخطاء التي يقدمها المزود.

اللغة البرمجية

strErrorText=objErr.Description

مثال

<%
for each objErr in objConn.Errors
  response.write("<p>")
  response.write("وصف: ")
  response.write(objErr.Description & "<br />")
  response.write("سياق المساعدة: ")
  response.write(objErr.HelpContext & "<br />")
  response.write("ملف المساعدة: ")
  response.write(objErr.HelpFile & "<br />")
  response.write("خطأ محلي: ")
  response.write(objErr.NativeError & "<br />")
  response.write("رقم الخطأ: ")
  response.write(objErr.Number & "<br />")
  response.write("مصدر الخطأ: ")
  response.write(objErr.Source & "<br />")
  response.write("حالة SQL: ")
  response.write(objErr.SQLState & "<br />")
  response.write("</p>")
التالي
%>