ErrorSupport.FireWarningWithArgs Method

Definition

引发警告,并显示一个提供用户定义对象或信息的数组的选项。Raises a warning with the option to provide an array of user-defined objects or information.

Overloads

FireWarningWithArgs(Int32, Object[])

引发由指定的 HRESULT 标识的警告,并包含一个用户定义对象或信息的可选数组。Raises a warning identified by the specified HRESULT and includes an optional array of user-defined objects or information.

FireWarningWithArgs(Int32, String, String, Int32, Object[])

引发由指定的 HRESULT 标识的警告,将其与指定的组件、帮助文件和帮助上下文关联起来,并包含一个用户定义对象或信息的可选数组。Raises a warning identified by the specified HRESULT, associates it with the specified component, help file, and help context, and includes an optional array of user-defined objects or information.

FireWarningWithArgs(Int32, Object[])

引发由指定的 HRESULT 标识的警告,并包含一个用户定义对象或信息的可选数组。Raises a warning identified by the specified HRESULT and includes an optional array of user-defined objects or information.

public:
 void FireWarningWithArgs(int hResult, ... cli::array <System::Object ^> ^ paramList);
public void FireWarningWithArgs (int hResult, params object[] paramList);
member this.FireWarningWithArgs : int * obj[] -> unit
Public Sub FireWarningWithArgs (hResult As Integer, ParamArray paramList As Object())

Parameters

hResult
Int32

基础 COM 错误的 HRESULT。The HRESULT of the underlying COM error.

paramList
Object[]

用户定义对象或信息的可选数组。An optional array of user-defined objects or information.

FireWarningWithArgs(Int32, String, String, Int32, Object[])

引发由指定的 HRESULT 标识的警告,将其与指定的组件、帮助文件和帮助上下文关联起来,并包含一个用户定义对象或信息的可选数组。Raises a warning identified by the specified HRESULT, associates it with the specified component, help file, and help context, and includes an optional array of user-defined objects or information.

public:
 void FireWarningWithArgs(int hResult, System::String ^ strSubComponent, System::String ^ strHelpFile, int HelpContext, ... cli::array <System::Object ^> ^ paramList);
public void FireWarningWithArgs (int hResult, string strSubComponent, string strHelpFile, int HelpContext, params object[] paramList);
member this.FireWarningWithArgs : int * string * string * int * obj[] -> unit
Public Sub FireWarningWithArgs (hResult As Integer, strSubComponent As String, strHelpFile As String, HelpContext As Integer, ParamArray paramList As Object())

Parameters

hResult
Int32

基础 COM 错误的 HRESULT。The HRESULT of the underlying COM error.

strSubComponent
String

组件的友好名称。The friendly name of the component.

strHelpFile
String

提供有关所引发消息的其他信息的帮助文件。The help file that provides additional information about the messages that are raised.

HelpContext
Int32

帮助文件中提供有关所引发消息的其他信息的位置。The location in the help file that provides additional information about the messages that are raised.

paramList
Object[]

用户定义对象或信息的可选数组。An optional array of user-defined objects or information.

Applies to