共用方式為


VpnChannelActivityStateChangedArgs.ActivityState 屬性

定義

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

public:
 property VpnChannelActivityEventType ActivityState { VpnChannelActivityEventType get(); };
VpnChannelActivityEventType ActivityState();
public VpnChannelActivityEventType ActivityState { get; }
var vpnChannelActivityEventType = vpnChannelActivityStateChangedArgs.activityState;
Public ReadOnly Property ActivityState As VpnChannelActivityEventType

屬性值

列舉值,指出 VPN 通道為閑置或作用中。

Windows 需求

應用程式功能
networkingVpnProvider

適用於