共用方式為


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

要註冊的執行個體

屬性

適用於