共用方式為


VpnChannelActivityStateChangedArgs 類別

定義

代表 ActivityStateChanged 事件,指定新的 VPN 通道狀態(閑置或作用中)。

public ref class VpnChannelActivityStateChangedArgs sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.MTA)]
class VpnChannelActivityStateChangedArgs final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.MTA)]
public sealed class VpnChannelActivityStateChangedArgs
Public NotInheritable Class VpnChannelActivityStateChangedArgs
繼承
Object Platform::Object IInspectable VpnChannelActivityStateChangedArgs
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)
應用程式功能
networkingVpnProvider

備註

這個類別的實例會在外部建立,並傳遞至您 app ActivityStateChanged 事件的處理程式。

屬性

ActivityState

取得值,識別 VPN 通道是閑置還是作用中。

適用於