Breyta

Deila með


NetworkAddressChangedEventHandler Delegate

Definition

References one or more methods to be called when the address of a network interface changes.

public delegate void NetworkAddressChangedEventHandler(System::Object ^ sender, EventArgs ^ e);
public delegate void NetworkAddressChangedEventHandler(object sender, EventArgs e);
public delegate void NetworkAddressChangedEventHandler(object? sender, EventArgs e);
type NetworkAddressChangedEventHandler = delegate of obj * EventArgs -> unit
Public Delegate Sub NetworkAddressChangedEventHandler(sender As Object, e As EventArgs)

Parameters

sender
Object

The source of the event.

e
EventArgs

An EventArgs object that contains data about the event.

Examples

The following code example listens for address changes and displays the status of network interfaces when a NetworkAddressChanged event occurs.

Remarks

This delegate handles NetworkAddressChanged events raised by the NetworkChange class. For detailed information on receiving notification for network interface address change events, see the NetworkChange class overview documentation.

Extension Methods

GetMethodInfo(Delegate)

Gets an object that represents the method represented by the specified delegate.

Applies to