VpnCredential 類別

定義

表示平臺所要求和提供的認證。 此類別會保存使用者名稱、密碼、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
繼承
Object Platform::Object IInspectable VpnCredential
屬性
實作

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)
應用程式功能
networkingVpnProvider

屬性

AdditionalPin

取得使用者提供的額外 PIN,通常用於要求使用者名稱、密碼和 PIN 的認證類型。

CertificateCredential

取得我們被授與存取權以用於 VPN 連線的憑證。

OldPasswordCredential

取得使用者用來登入 VPN 伺服器的先前認證,如同密碼變更的情況。

PasskeyCredential

取得使用者用來登入 VPN 伺服器的目前密碼認證。

適用於

另請參閱