语言

ErrorSupport.FireError 方法

定义

会触发错误。

重载

名称 说明
FireError(Int32, Boolean)

触发指定 HRESULT 识别的错误,并允许取消执行。

FireError(Int32, String, String, Int32, Boolean)

它会根据指定的 HRESULT 识别出错误,将其关联到指定的组件、帮助文件和帮助上下文,并允许取消执行。

FireError(Int32, Boolean)

触发指定 HRESULT 识别的错误,并允许取消执行。

public:
 void FireError(int hResult, [Runtime::InteropServices::Out] bool % bCancel);
public void FireError(int hResult, out bool bCancel);
member this.FireError : int * bool -> unit
Public Sub FireError (hResult As Integer, ByRef bCancel As Boolean)

参数

hResult
Int32

是COM错误的HRESULT。

bCancel
Boolean

取消执行的事实;否则,就是假的。

适用于

FireError(Int32, String, String, Int32, Boolean)

它会根据指定的 HRESULT 识别出错误,将其关联到指定的组件、帮助文件和帮助上下文,并允许取消执行。

public:
 void FireError(int hResult, System::String ^ strSubComponent, System::String ^ strHelpFile, int HelpContext, [Runtime::InteropServices::Out] bool % bCancel);
public void FireError(int hResult, string strSubComponent, string strHelpFile, int HelpContext, out bool bCancel);
member this.FireError : int * string * string * int * bool -> unit
Public Sub FireError (hResult As Integer, strSubComponent As String, strHelpFile As String, HelpContext As Integer, ByRef bCancel As Boolean)

参数

hResult
Int32

是COM错误的HRESULT。

strSubComponent
String

组件的友好名称。

strHelpFile
String

帮助文件将提供关于提出信息的额外信息。

HelpContext
Int32

帮助文件中的位置,将提供关于被提出消息的更多信息。

bCancel
Boolean

取消执行的事实;否则,就是假的。

适用于