Share via


KeyVaultKeyIdentifier(Uri) Constructor

Definition

Creates a new instance of the KeyVaultKeyIdentifier class.

public KeyVaultKeyIdentifier (Uri id);
new Azure.Security.KeyVault.Keys.KeyVaultKeyIdentifier : Uri -> Azure.Security.KeyVault.Keys.KeyVaultKeyIdentifier
Public Sub New (id As Uri)

Parameters

id
Uri

The Uri to a key or deleted key.

Exceptions

id is not a valid Key Vault or Managed HSM key ID.

id is null.

Remarks

Successfully parsing the given Uri does not guarantee that the id is a valid Key Vault or Managed HSM key identifier: only that it contains the necessary number of path parts that look like a Key Vault key identifier. If the VaultUri references a valid Key Vault or Managed HSM, the service will return an error if the Name and Version do not specify a valid key.

Applies to