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

適用於