Bagikan melalui


KeyCredentialManager.RequestCreateAsync Metode

Definisi

Membuat kredensial kunci baru untuk pengguna dan aplikasi saat ini.

public:
 static IAsyncOperation<KeyCredentialRetrievalResult ^> ^ RequestCreateAsync(Platform::String ^ name, KeyCredentialCreationOption option);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<KeyCredentialRetrievalResult> RequestCreateAsync(winrt::hstring const& name, KeyCredentialCreationOption const& option);
 static IAsyncOperation<KeyCredentialRetrievalResult> RequestCreateAsync(winrt::hstring const& name, KeyCredentialCreationOption const& option);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<KeyCredentialRetrievalResult> RequestCreateAsync(string name, KeyCredentialCreationOption option);
public static IAsyncOperation<KeyCredentialRetrievalResult> RequestCreateAsync(string name, KeyCredentialCreationOption option);
function requestCreateAsync(name, option)
Public Shared Function RequestCreateAsync (name As String, option As KeyCredentialCreationOption) As IAsyncOperation(Of KeyCredentialRetrievalResult)

Parameter

name
String

Platform::String

winrt::hstring

Nama kredensial kunci yang akan dibuat.

option
KeyCredentialCreationOption

Opsi untuk operasi pembuatan.

Mengembalikan

Ketika metode ini selesai, metode ini mengembalikan hasil pembuatan kredensial kunci.

Atribut

Berlaku untuk