Dela via


KeyCredentialManager.RequestCreateAsync Method

Definition

Creates a new key credential for the current user and application.

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)

Parameters

name
String

Platform::String

winrt::hstring

The name of the key credential to create.

option
KeyCredentialCreationOption

Options for the creation operation.

Returns

When this method completes, it returns the results of the key credential creation.

Attributes

Applies to