共用方式為


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

引發事件的 Object

屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

適用於