NetworkStatusChangedEventHandler 委托

定义

表示处理网络状态更改通知的方法。 当应用处于活动状态时 ,NetworkInformation 对象公开的任何属性发生更改时,将调用此方法。

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)

参数

sender
Object

Platform::Object

IInspectable

引发事件的 对象

属性

Windows 要求

设备系列
Windows 10 (在 10.0.10240.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)

适用于