NetworkAvailableEventHandler 委托

定义

表示将处理 My.Application.NetworkAvailabilityChangedMy.Computer.Network.NetworkAvailabilityChanged 事件的方法。Represents the method that will handle the My.Application.NetworkAvailabilityChanged or My.Computer.Network.NetworkAvailabilityChanged event.

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

参数

sender
Object

事件源。The source of the event.

e
NetworkAvailableEventArgs

包含事件数据的 NetworkAvailableEventArgs 对象。A NetworkAvailableEventArgs object that contains the event data.

继承
NetworkAvailableEventHandler

注解

在 Visual Basic 中, 无需显式使用此委托。In Visual Basic, you do not need to work with this delegate explicitly. 有关详细信息, 请参阅WindowsFormsApplicationBase.NetworkAvailabilityChanged事件Network.NetworkAvailabilityChanged或事件。For more information, see the WindowsFormsApplicationBase.NetworkAvailabilityChanged event or the Network.NetworkAvailabilityChanged event.

扩展方法

GetMethodInfo(Delegate)

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

适用于

另请参阅