VpnChannelActivityStateChangedArgs 类

定义

表示指定新的 VPN 通道状态(空闲或活动)的 ActivityStateChanged 事件。

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

注解

此类的实例在外部创建,并传递给 ActivityStateChanged 事件的应用的处理程序。

属性

ActivityState

获取一个值,该值标识 VPN 通道是空闲还是处于活动状态。

适用于