VpnForegroundActivatedEventArgs 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
使用 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
- 繼承
- 屬性
- 實作
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。 |
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應