FileSystemWatcher.OnError(ErrorEventArgs) 方法

定义

引发 Error 事件。

protected:
 void OnError(System::IO::ErrorEventArgs ^ e);
protected void OnError(System.IO.ErrorEventArgs e);
member this.OnError : System.IO.ErrorEventArgs -> unit
Protected Sub OnError (e As ErrorEventArgs)

参数

e
ErrorEventArgs

包含事件数据的一个 ErrorEventArgs

注解

OnError 发生错误时调用 。

引发事件会通过委托调用事件处理程序。 有关详细信息,请参阅 处理和引发事件

继承者说明

在派生类中重写 OnError(ErrorEventArgs) 时,请务必调用基类 OnError(ErrorEventArgs) 的方法。

适用于

另请参阅