Bagikan melalui


NetworkStatusChangedEventHandler Delegasikan

Definisi

Mewakili metode yang menangani pemberitahuan perubahan status jaringan. Metode ini dipanggil ketika properti apa pun yang diekspos oleh objek NetworkInformation berubah saat aplikasi aktif.

public delegate void NetworkStatusChangedEventHandler(Platform::Object ^ sender);
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(1908020287, 22926, 18896, 132, 235, 143, 235, 174, 220, 193, 149)]
class NetworkStatusChangedEventHandler : MulticastDelegate
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Guid(1908020287, 22926, 18896, 132, 235, 143, 235, 174, 220, 193, 149)]
public delegate void NetworkStatusChangedEventHandler(object sender);
var networkStatusChangedEventHandlerHandler = function(sender){
/* Your code */
}
Public Delegate Sub NetworkStatusChangedEventHandler(sender As Object)

Parameter

sender
Object

Platform::Object

IInspectable

Objek yang memunculkan peristiwa.

Atribut

Persyaratan Windows

Rangkaian perangkat
Windows 10 (diperkenalkan dalam 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (diperkenalkan dalam v1.0)

Berlaku untuk