Bagikan melalui


NetworkChange.NetworkAvailabilityChanged Kejadian

Definisi

Terjadi ketika ketersediaan jaringan berubah.

public:
 static event System::Net::NetworkInformation::NetworkAvailabilityChangedEventHandler ^ NetworkAvailabilityChanged;
public static event System.Net.NetworkInformation.NetworkAvailabilityChangedEventHandler? NetworkAvailabilityChanged;
[System.Runtime.Versioning.UnsupportedOSPlatform("illumos")]
[System.Runtime.Versioning.UnsupportedOSPlatform("solaris")]
public static event System.Net.NetworkInformation.NetworkAvailabilityChangedEventHandler? NetworkAvailabilityChanged;
public static event System.Net.NetworkInformation.NetworkAvailabilityChangedEventHandler NetworkAvailabilityChanged;
member this.NetworkAvailabilityChanged : System.Net.NetworkInformation.NetworkAvailabilityChangedEventHandler 
[<System.Runtime.Versioning.UnsupportedOSPlatform("illumos")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("solaris")>]
member this.NetworkAvailabilityChanged : System.Net.NetworkInformation.NetworkAvailabilityChangedEventHandler 
Public Shared Custom Event NetworkAvailabilityChanged As NetworkAvailabilityChangedEventHandler 

Jenis Acara

Atribut

Keterangan

Kelas NetworkChange memunculkan NetworkAvailabilityChanged peristiwa ketika ketersediaan jaringan berubah. Jaringan tersedia ketika setidaknya satu antarmuka jaringan ditandai "naik" dan bukan antarmuka terowongan atau loopback.

NetworkChange Agar objek memanggil metode penanganan peristiwa saat NetworkAvailabilityChanged peristiwa terjadi, Anda harus mengaitkan metode dengan NetworkAvailabilityChangedEventHandler delegasi, dan menambahkan delegasi ini ke peristiwa ini.

Berlaku untuk