NetworkAvailabilityChangedEventHandler 委托

定义

引用在网络可用性更改时调用的一个或多个方法。References one or more methods to be called when the availability of the network changes.

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

参数

sender
Object

事件源。The source of the event.

e
NetworkAvailabilityEventArgs

包含事件数据的 EventArgs 对象。An EventArgs object that contains data about the event.

继承
NetworkAvailabilityChangedEventHandler

注解

此委托处理 NetworkChange 类引发 NetworkAvailabilityChanged 事件。This delegate handles NetworkAvailabilityChanged events raised by the NetworkChange class. 有关接收网络接口地址更改事件通知的详细信息,请参阅 NetworkChange 类概述文档。For detailed information on receiving notification for network interface address change events, see the NetworkChange class overview documentation.

Windows 2000 和更高版本支持 NetworkAvailabilityChanged 事件。The NetworkAvailabilityChanged event is supported on Windows 2000 and later.

扩展方法

GetMethodInfo(Delegate)

获取指示指定委托表示的方法的对象。Gets an object that represents the method represented by the specified delegate.

适用于