KeyVaultKeyIdentifier.TryCreate(Uri, KeyVaultKeyIdentifier) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Tries to create a new instance of the KeyVaultKeyIdentifier from the given id
.
public static bool TryCreate (Uri id, out Azure.Security.KeyVault.Keys.KeyVaultKeyIdentifier identifier);
static member TryCreate : Uri * KeyVaultKeyIdentifier -> bool
Public Shared Function TryCreate (id As Uri, ByRef identifier As KeyVaultKeyIdentifier) As Boolean
Parameters
- identifier
- KeyVaultKeyIdentifier
A KeyVaultKeyIdentifier from the given id
if valid; otherwise, an empty structure if invalid.
Returns
True if the Uri contains a VaultUri, Name, and optional Version; otherwise, false.
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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應