Share via


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

 

Asynchronously list secrets in the specified vault.

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

Syntax

public Task<ListSecretsResponseMessage> GetSecretsAsync(
    string vault,
    Nullable<int> maxresults = null,
    CancellationToken cancellationToken = null
)
public:
Task<ListSecretsResponseMessage^>^ GetSecretsAsync(
    String^ vault,
    Nullable<int> maxresults = null,
    CancellationToken cancellationToken = null
)
member GetSecretsAsync : 
        vault:string *
        maxresults:Nullable<int> = null *
        cancellationToken:CancellationToken = null -> Task<ListSecretsResponseMessage>
Public Function GetSecretsAsync (
    vault As String,
    maxresults As Nullable(Of Integer),
    cancellationToken As CancellationToken
) As Task(Of ListSecretsResponseMessage)

Parameters

  • vault
    Type: System.String

    The URL for the vault containing the secrets.

Return Value

Type: System.Threading.Tasks.Task<ListSecretsResponseMessage>

A response message containing a list of secrets in the vault along with a link to the next page of secrets.

See Also

KeyVaultClient Class
Microsoft.Azure.KeyVault Namespace

Return to top