NetworkAvailableEventArgs 类

定义

提供有关 My.Application.NetworkAvailabilityChangedMy.Computer.Network.NetworkAvailabilityChanged 事件的数据。Provides data for the My.Application.NetworkAvailabilityChanged and My.Computer.Network.NetworkAvailabilityChanged events.

public ref class NetworkAvailableEventArgs : EventArgs
public class NetworkAvailableEventArgs : EventArgs
type NetworkAvailableEventArgs = class
    inherit EventArgs
Public Class NetworkAvailableEventArgs
Inherits EventArgs
继承
NetworkAvailableEventArgs

注解

WindowsFormsApplicationBase.NetworkAvailabilityChanged网络的Network.NetworkAvailabilityChanged可用性发生变化时,将发生和事件。The WindowsFormsApplicationBase.NetworkAvailabilityChanged and the Network.NetworkAvailabilityChanged events occur when the availability of the network changes.

NetworkAvailableEventArgs包含网络连接的新状态。NetworkAvailableEventArgs contains the new state of the network connection. 若要获取网络连接的当前状态,请使用IsAvailable属性。To get the current state of the network connection, use the IsAvailable property.

构造函数

NetworkAvailableEventArgs(Boolean)

初始化 StartupNextInstanceEventArgs 类的新实例。Initializes a new instance of the StartupNextInstanceEventArgs class.

属性

IsNetworkAvailable

获取一个值,该值指示网络是否可供该应用程序使用。Gets a value indicating whether a network is available to the application.

方法

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

适用于

另请参阅