IDTSComponentEvents100.FireError 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
当发生错误时,会触发事件。
public:
void FireError(int ErrorCode, System::String ^ SubComponent, System::String ^ Description, System::String ^ HelpFile, int HelpContext, [Runtime::InteropServices::Out] bool % pbCancel);
[System.Runtime.InteropServices.DispId(2)]
public void FireError(int ErrorCode, string SubComponent, string Description, string HelpFile, int HelpContext, out bool pbCancel);
[<System.Runtime.InteropServices.DispId(2)>]
abstract member FireError : int * string * string * string * int * bool -> unit
Public Sub FireError (ErrorCode As Integer, SubComponent As String, Description As String, HelpFile As String, HelpContext As Integer, ByRef pbCancel As Boolean)
参数
- ErrorCode
- Int32
一个整数用于识别错误消息。
- SubComponent
- String
包含事件源更多细节的字符串。
- Description
- String
消息的文本。
- HelpFile
- String
通往包含详细信息的帮助文件的路径。
- HelpContext
- Int32
帮助文件中主题的标识符。
- pbCancel
- Boolean
当该方法返回时,包含一个布尔值,指示事件应继续触发还是停止触发。 值为真表示事件应继续触发。 值为false表示事件应停止触发。 此参数未初始化传递。
实现
- 属性