IDTSComponentEvents.FireWarning(Int32, String, String, String, Int32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
只要任务处于一个不足以证明错误但值得提醒客户端的状态,它就会触发事件。
public:
void FireWarning(int warningCode, System::String ^ subComponent, System::String ^ description, System::String ^ helpFile, int helpContext);
public void FireWarning(int warningCode, string subComponent, string description, string helpFile, int helpContext);
abstract member FireWarning : int * string * string * string * int -> unit
Public Sub FireWarning (warningCode As Integer, subComponent As String, description As String, helpFile As String, helpContext As Integer)
参数
- warningCode
- Int32
一个整数,用于识别警告信息。
- subComponent
- String
包含事件源更多细节的字符串。
- description
- String
消息的文本。
- helpFile
- String
通往包含详细信息的帮助文件的路径。
- helpContext
- Int32
帮助文件中主题的标识符。
注解
由于触发事件可能成本高昂,运行时引擎提供了一种机制来抑制你不感兴趣的事件。 每种事件触发方法都有参数 FireAgain 。 如果该变量的值为 false,方法返回后调用者在当前执行期间不会再次触发该事件。
其中几个事件有一个 subComponent 参数,使事件源识别更加细致。