语言

ErrorSupport.FireWarning 方法

定义

会发出警告。

重载

名称 说明
FireWarning(Int32)

由指定的 HRESULT 发出警告,并允许取消执行。

FireWarning(Int32, String, String, Int32)

由指定的 HRESULT 发出警告,并将其关联到指定的组件、帮助文件和帮助上下文。

FireWarning(Int32)

由指定的 HRESULT 发出警告,并允许取消执行。

public:
 void FireWarning(int hResult);
public void FireWarning(int hResult);
member this.FireWarning : int -> unit
Public Sub FireWarning (hResult As Integer)

参数

hResult
Int32

是COM错误的HRESULT。

适用于

FireWarning(Int32, String, String, Int32)

由指定的 HRESULT 发出警告,并将其关联到指定的组件、帮助文件和帮助上下文。

public:
 void FireWarning(int hResult, System::String ^ strSubComponent, System::String ^ strHelpFile, int HelpContext);
public void FireWarning(int hResult, string strSubComponent, string strHelpFile, int HelpContext);
member this.FireWarning : int * string * string * int -> unit
Public Sub FireWarning (hResult As Integer, strSubComponent As String, strHelpFile As String, HelpContext As Integer)

参数

hResult
Int32

是COM错误的HRESULT。

strSubComponent
String

组件的友好名称。

strHelpFile
String

帮助文件提供关于被提出信息的更多信息。

HelpContext
Int32

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

适用于