ADODC.ErrorDelegate 代理人

定義

警告

此 API 現已淘汰。

表示將處理 Error 事件的方法。Represents the method that will handle an Error event.

public: delegate void ADODC::ErrorDelegate(int errorNumber, System::String ^ % description, int scode, System::String ^ source, System::String ^ helpFile, int helpContext, bool % cancelDisplay);
[System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. https://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
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,表示錯誤代碼。An Integer that represents the error number.

description
String

String,包含錯誤訊息。A String that contains the error message.

scode
Int32

Integer,表示錯誤來源。An Integer that represents the error source.

source
String

String,表示來源名稱。A String that represents the source name.

helpFile
String

String,表示錯誤的說明檔。A String that represents the Help file for the error.

helpContext
Int32

Integer,表示說明主題代碼。An Integer that represents the context ID for a Help topic.

cancelDisplay
Boolean

Boolean,決定使用者是否可以取消錯誤對話方塊。A Boolean that determines whether the user can cancel the error dialog box.

繼承
ADODC.ErrorDelegate
屬性

備註

注意

Microsoft.VisualBasic.Compatibility.VB6 命名空間中的函式和物件都是供這些工具使用,以便從 Visual Basic 6.0 升級至 Visual Basic。Functions and objects in the Microsoft.VisualBasic.Compatibility.VB6 namespace are provided for use by the tools for upgrading from Visual Basic 6.0 to Visual Basic. 在大多數情況下,這些函式和物件會複製在 .NET Framework.NET Framework 的其他命名空間中可以找到的功能。In most cases, these functions and objects duplicate functionality that you can find in other namespaces in the .NET Framework.NET Framework. 只有當 Visual Basic 6.0 程式碼模型與 .NET Framework.NET Framework 實作有顯著差異時,才需要這些項目。They are necessary only when the Visual Basic 6.0 code model differs significantly from the .NET Framework.NET Framework implementation.

擴充方法

GetMethodInfo(Delegate)

取得表示特定委派所代表之方法的物件。Gets an object that represents the method represented by the specified delegate.

適用於