KeyVaultClient.GetKeyVersionsAsync Method (String, String, Nullable<Int32>, CancellationToken)
Asynchronously list the versions of the specified key.
Namespace: Microsoft.Azure.KeyVault
Assembly: Microsoft.Azure.KeyVault (in Microsoft.Azure.KeyVault.dll)
Syntax
public Task<ListKeysResponseMessage> GetKeyVersionsAsync(
string vault,
string keyName,
Nullable<int> maxresults = null,
CancellationToken cancellationToken = null
)
public:
Task<ListKeysResponseMessage^>^ GetKeyVersionsAsync(
String^ vault,
String^ keyName,
Nullable<int> maxresults = null,
CancellationToken cancellationToken = null
)
member GetKeyVersionsAsync :
vault:string *
keyName:string *
maxresults:Nullable<int> = null *
cancellationToken:CancellationToken = null -> Task<ListKeysResponseMessage>
Public Function GetKeyVersionsAsync (
vault As String,
keyName As String,
maxresults As Nullable(Of Integer),
cancellationToken As CancellationToken
) As Task(Of ListKeysResponseMessage)
Parameters
vault
Type: System.StringThe URL for the vault containing the key, e.g. https://myvault.vault.azure.net.
keyName
Type: System.StringThe name of the key.
maxresults
Type: System.Nullable<Int32>The maximum number of keys to return.
cancellationToken
Type: System.Threading.CancellationTokenOptional cancellation token.
Return Value
Type: System.Threading.Tasks.Task<ListKeysResponseMessage>
A response message containing a list of keys along with a link to the next page of keys.
See Also
KeyVaultClient Class
Microsoft.Azure.KeyVault Namespace
Return to top