NetworkChange.RegisterNetworkChange(NetworkChange) 方法

定义

注意

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

注册网络更改实例来接收网络更改事件。

public:
 static void RegisterNetworkChange(System::Net::NetworkInformation::NetworkChange ^ nc);
[System.Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)]
public static void RegisterNetworkChange (System.Net.NetworkInformation.NetworkChange nc);
[<System.Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)>]
static member RegisterNetworkChange : System.Net.NetworkInformation.NetworkChange -> unit
Public Shared Sub RegisterNetworkChange (nc As NetworkChange)

参数

nc
NetworkChange

要注册的实例。

属性

适用于