Share via


KeyVaultClient.GetKeysAsync Method (String, Nullable<Int32>, CancellationToken)

 

Asynchronously list keys in the specified vault.

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

Syntax

public Task<ListKeysResponseMessage> GetKeysAsync(
    string vault,
    Nullable<int> maxresults = null,
    CancellationToken cancellationToken = null
)
public:
Task<ListKeysResponseMessage^>^ GetKeysAsync(
    String^ vault,
    Nullable<int> maxresults = null,
    CancellationToken cancellationToken = null
)
member GetKeysAsync : 
        vault:string *
        maxresults:Nullable<int> = null *
        cancellationToken:CancellationToken = null -> Task<ListKeysResponseMessage>
Public Function GetKeysAsync (
    vault 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 in the vault along with a link to the next page of keys.

See Also

KeyVaultClient Class
Microsoft.Azure.KeyVault Namespace

Return to top