NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

FileSystemWatcher.OnError

Raises the System.IO.FileSystemWatcher.Error event.

[Visual Basic]
Overridable Protected Sub OnError( _
   ByVal e As ErrorEventArgs _
)
[C#]
protected virtual void OnError(
   ErrorEventArgs e
);
[C++]
protected: virtual void OnError(
   ErrorEventArgs* e
);
[JScript]
protected function OnError(
   e : ErrorEventArgs
);

Parameters

e
An ErrorEventArgs that contains the event data.

Remarks

OnError is called when an error occurs.

Raising an event invokes the event-handling method through a delegate. For more information, see TBD.

Notes to Inheritors: When overriding OnError in a derived class, be sure to call the base class's OnError method.

See Also

FileSystemWatcher Class | FileSystemWatcher Members | System.IO Namespace | System.IO.FileSystemWatcher.Error | ErrorEventArgs | ErrorEventHandler | InternalBufferOverflowException