แก้ไข

แชร์ผ่าน


WebBrowser.OnFileDownload(EventArgs) Method

Definition

Raises the FileDownload event.

protected:
 virtual void OnFileDownload(EventArgs ^ e);
protected virtual void OnFileDownload (EventArgs e);
abstract member OnFileDownload : EventArgs -> unit
override this.OnFileDownload : EventArgs -> unit
Protected Overridable Sub OnFileDownload (e As EventArgs)

Parameters

e
EventArgs

A CancelEventArgs that contains the event data.

Remarks

Raising an event invokes the event handler through a delegate. For more information, see Handling and Raising Events.

The OnFileDownload method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.

Notes to Inheritors

When overriding OnFileDownload(EventArgs) in a derived class, be sure to call the base class's OnFileDownload(EventArgs) method so that registered delegates receive the event.

Applies to

See also