Partilhar via


IVsProjectSecrets.GetSecretsAsync(CancellationToken) Method

Definition

Gets a complete map of stored secret names and values.

public System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyDictionary<string,string>> GetSecretsAsync (System.Threading.CancellationToken cancellationToken = default);
public System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyDictionary<string,string?>> GetSecretsAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetSecretsAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyDictionary<string, string>>
Public Function GetSecretsAsync (Optional cancellationToken As CancellationToken = Nothing) As Task(Of IReadOnlyDictionary(Of String, String))

Parameters

cancellationToken
CancellationToken

A token that may cancel this operation.

Returns

A dictionary containing the names and values of all the secrets.

Exceptions

Thrown when the user does not have permission for this operation.

Thrown when the operation could not be completed due to some network or I/O failure.

Applies to