NetworkAddressChangedEventHandler Delegate
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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. |