KeyVaultClient.CreateKeyAsync Method (String, String, String, String[], KeyAttributes)

Creates a new, named, key in the specified vault.

Namespace: Microsoft.KeyVault.Client
Assembly: Microsoft.KeyVault.Client (in Microsoft.KeyVault.Client.dll)

Syntax

'Declaration
[DebuggerStepThroughAttribute] 
public Task<KeyBundle> CreateKeyAsync (
    string vaultAddress,
    string keyName,
    string keyType,
    string[] key_ops,
    KeyAttributes keyAttributes
)

Parameters

  • vaultAddress
    The URL for the vault in which the key is to be created.
  • keyName
    The name for the key
  • keyType
    The type of key to create (one of the valid WebKeyTypes)
  • keyAttributes
    The attributes of the key

Return Value

A key bundle containing the result of the create request

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Vista, Windows 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012

Target Platforms

See Also

Reference

KeyVaultClient Class
KeyVaultClient Members
Microsoft.KeyVault.Client Namespace