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

一个表示错误号的 IntegerAn Integer that represents the error number.

description
String

包含错误消息的 StringA String that contains the error message.

scode
Int32

一个表示错误源的 IntegerAn Integer that represents the error source.

source
String

一个表示源名称的 StringA String that represents the source name.

helpFile
String

一个表示错误帮助文件的 StringA String that represents the Help file for the error.

helpContext
Int32

一个 Integer,表示帮助主题的上下文 ID。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.

适用于