VpnChannel.RequestCredentialsAsync 方法

定義

多載

RequestCredentialsAsync(VpnCredentialType)

要求 VPN 平台從使用者收集指定認證類型的認證。

RequestCredentialsAsync(VpnCredentialType, UInt32)

要求 VPN 平台從使用者收集認證。 外掛程式可以指定要收集的認證類型和形式。 結果是物件,其中包含主要認證,視類型而定,以及變更和到期案例的次要認證。

RequestCredentialsAsync(VpnCredentialType, UInt32, Certificate)

從使用者收集認證的 VPN 平臺。 如果需要用戶互動才能取得認證或同意,平臺會提供必要的用戶互動。 VPN 外掛程式在使用任何類型的認證之前必須先要求認證,即使意圖不是叫用用戶互動也一樣。

RequestCredentialsAsync(VpnCredentialType)

要求 VPN 平台從使用者收集指定認證類型的認證。

public:
 virtual IAsyncOperation<VpnCredential ^> ^ RequestCredentialsAsync(VpnCredentialType credType) = RequestCredentialsAsync;
/// [Windows.Foundation.Metadata.Overload("RequestCredentialsSimpleAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<VpnCredential> RequestCredentialsAsync(VpnCredentialType const& credType);
[Windows.Foundation.Metadata.Overload("RequestCredentialsSimpleAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<VpnCredential> RequestCredentialsAsync(VpnCredentialType credType);
function requestCredentialsAsync(credType)
Public Function RequestCredentialsAsync (credType As VpnCredentialType) As IAsyncOperation(Of VpnCredential)

參數

credType
VpnCredentialType

列舉值,表示要收集的認證類型。

傳回

VpnCredential 物件的異步擷取作業,其中包含要求類型的主要認證,以及變更和到期案例的次要認證。

屬性

Windows 需求

應用程式功能
networkingVpnProvider

另請參閱

適用於

RequestCredentialsAsync(VpnCredentialType, UInt32)

要求 VPN 平台從使用者收集認證。 外掛程式可以指定要收集的認證類型和形式。 結果是物件,其中包含主要認證,視類型而定,以及變更和到期案例的次要認證。

public:
 virtual IAsyncOperation<VpnCredential ^> ^ RequestCredentialsAsync(VpnCredentialType credType, unsigned int credOptions) = RequestCredentialsAsync;
/// [Windows.Foundation.Metadata.Overload("RequestCredentialsWithOptionsAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<VpnCredential> RequestCredentialsAsync(VpnCredentialType const& credType, uint32_t const& credOptions);
[Windows.Foundation.Metadata.Overload("RequestCredentialsWithOptionsAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<VpnCredential> RequestCredentialsAsync(VpnCredentialType credType, uint credOptions);
function requestCredentialsAsync(credType, credOptions)
Public Function RequestCredentialsAsync (credType As VpnCredentialType, credOptions As UInteger) As IAsyncOperation(Of VpnCredential)

參數

credType
VpnCredentialType

列舉值,表示要收集的認證類型。

credOptions
UInt32

unsigned int

uint32_t

指定定義要求認證是否為重試案例的值,或應該用於單一登錄。

如需可能的值,請參閱 VpnChannelRequestCredentialsOptions

傳回

VpnCredential 物件的異步擷取作業,其中包含要求類型的主要認證,以及變更和到期案例的次要認證。

屬性

Windows 需求

應用程式功能
networkingVpnProvider

另請參閱

適用於

RequestCredentialsAsync(VpnCredentialType, UInt32, Certificate)

從使用者收集認證的 VPN 平臺。 如果需要用戶互動才能取得認證或同意,平臺會提供必要的用戶互動。 VPN 外掛程式在使用任何類型的認證之前必須先要求認證,即使意圖不是叫用用戶互動也一樣。

public:
 virtual IAsyncOperation<VpnCredential ^> ^ RequestCredentialsAsync(VpnCredentialType credType, unsigned int credOptions, Certificate ^ certificate) = RequestCredentialsAsync;
/// [Windows.Foundation.Metadata.Overload("RequestCredentialsWithCertificateAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<VpnCredential> RequestCredentialsAsync(VpnCredentialType const& credType, uint32_t const& credOptions, Certificate const& certificate);
[Windows.Foundation.Metadata.Overload("RequestCredentialsWithCertificateAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<VpnCredential> RequestCredentialsAsync(VpnCredentialType credType, uint credOptions, Certificate certificate);
function requestCredentialsAsync(credType, credOptions, certificate)
Public Function RequestCredentialsAsync (credType As VpnCredentialType, credOptions As UInteger, certificate As Certificate) As IAsyncOperation(Of VpnCredential)

參數

credType
VpnCredentialType

列舉值,表示要收集的認證類型。

credOptions
UInt32

unsigned int

uint32_t

指定定義要求認證是否為重試案例的值,或應該用於單一登錄。

如需可能的值,請參閱 VpnChannelRequestCredentialsOptions

certificate
Certificate

用於驗證認證的憑證。

傳回

VpnCredential 物件的異步擷取作業,其中包含要求類型的主要認證,以及變更和到期案例的次要認證。

屬性

Windows 需求

應用程式功能
networkingVpnProvider

另請參閱

適用於