Share via


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

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