Share via


VpnForegroundActivatedEventArgs 類別

定義

使用 Activated 事件傳遞的引數 (請參閱在前景啟用 VPN 應用程式時 ,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

適用於