VpnCredential 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
表示平臺所要求的和提供的認證。 這個類別會保存使用者名稱、密碼、PIN、OTP,以及已授與存取權的任何其他 PIN 或憑證。
public ref class VpnCredential sealed : IVpnCredential
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.MTA)]
class VpnCredential final : IVpnCredential
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.MTA)]
public sealed class VpnCredential : IVpnCredential
Public NotInheritable Class VpnCredential
Implements IVpnCredential
- 繼承
- 屬性
- 實作
Windows 需求
裝置系列 |
Windows 10 (已於 10.0.10240.0 引進)
|
API contract |
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)
|
應用程式功能 |
networkingVpnProvider
|
屬性
AdditionalPin |
取得使用者所提供的其他 PIN,通常是在要求使用者名稱、密碼和 PIN 的認證類型時使用。 |
CertificateCredential |
取得我們授與存取權以用於 VPN 連線的憑證。 |
OldPasswordCredential |
取得先前用來登入 VPN 伺服器的使用者認證,如同密碼變更的情況。 |
PasskeyCredential |
取得使用者用來登入 VPN 伺服器的目前密碼認證。 |
適用於
另請參閱
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應