ADODC.ErrorDelegate 代理人
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862
代表將處理事件 Error 的方法。
public: delegate void ADODC::ErrorDelegate(int errorNumber, System::String ^ % description, int scode, System::String ^ source, System::String ^ helpFile, int helpContext, bool % cancelDisplay);
public delegate void ADODC.ErrorDelegate(int errorNumber, ref string description, int scode, string source, string helpFile, int helpContext, ref bool cancelDisplay);
[System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")]
public delegate void ADODC.ErrorDelegate(int errorNumber, ref string description, int scode, string source, string helpFile, int helpContext, ref bool cancelDisplay);
type ADODC.ErrorDelegate = delegate of int * string * int * string * string * int * bool -> unit
[<System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")>]
type ADODC.ErrorDelegate = delegate of int * string * int * string * string * int * bool -> unit
Public Delegate Sub ADODC.ErrorDelegate(errorNumber As Integer, ByRef description As String, scode As Integer, source As String, helpFile As String, helpContext As Integer, ByRef cancelDisplay As Boolean)
參數
- errorNumber
- Int32
代表 Integer 錯誤號碼。
- description
- String
String A 裡面包含錯誤訊息。
- scode
- Int32
代表 Integer 錯誤來源的 。
- source
- String
A String 代表來源名稱。
- helpFile
- String
A String 代表錯誤的說明檔案。
- helpContext
- Int32
一個 Integer 代表幫助主題的上下文 ID。
- cancelDisplay
- Boolean
Boolean A 決定使用者是否能取消錯誤對話框。
- 屬性
備註
Note
命名空間中的 Microsoft.VisualBasic.Compatibility.VB6 函式與物件提供給從 Visual Basic 6.0 升級到 Visual Basic 的工具使用。 大多數情況下,這些函式和物件會重複你在 .NET Framework 中其他命名空間中能找到的功能。 只有當 Visual Basic 6.0 的程式碼模型與 .NET Framework 實作有顯著差異時,才需要使用這些工具。
擴充方法
| 名稱 | Description |
|---|---|
| GetMethodInfo(Delegate) |
已淘汰.
取得一個代表指定代理所代表方法的物件。 |