VpnForegroundActivatedEventArgs 类

定义

在前台激活 VPN 应用时,随 Activated 事件传递的参数 (请参阅 Application.OnActivated) 。

public ref class VpnForegroundActivatedEventArgs sealed : IActivatedEventArgsWithUser
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 851968)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class VpnForegroundActivatedEventArgs final : IActivatedEventArgsWithUser
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 851968)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class VpnForegroundActivatedEventArgs : IActivatedEventArgsWithUser
Public NotInheritable Class VpnForegroundActivatedEventArgs
Implements IActivatedEventArgsWithUser
继承
Object Platform::Object IInspectable VpnForegroundActivatedEventArgs
属性
实现

Windows 要求

设备系列
Windows 11 (在 10.0.22000.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v14.0 中引入)
应用功能
networkingVpnProvider

属性

ActivationOperation

获取表示 VPN 前台操作的 对象。

处理完前台操作后,必须调用此 VpnForegroundActivationOperation 对象的 Complete 方法,传入要返回到 IVpnPlugin.Connect 调用的值的 ValueSet。 请参阅 VpnChannel.ActivateForeground

Kind

获取激活此应用的原因。

PreviousExecutionState

获取应用在此激活之前处于的执行状态。

ProfileName

获取处于活动状态的 VPN 配置文件的名称。

SharedContext

获取 VPN 插件在激活 VPN 前台应用时提供的值集。 请参阅 VpnChannel.ActivateForeground

SplashScreen

获取初始屏幕对象,该对象提供有关从初始屏幕到激活应用转换的信息。

User

获取为其激活应用的用户。 另请参阅 IActivatedEventArgsWithUser.User

适用于