IVsProjectSecrets.GetSecretsAsync(CancellationToken) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient un mappage complet des noms et des valeurs des secrets stockés.
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))
Paramètres
- cancellationToken
- CancellationToken
Jeton qui peut annuler cette opération.
Retours
Dictionnaire contenant les noms et les valeurs de tous les secrets.
Exceptions
Levée lorsque l’utilisateur n’a pas l’autorisation pour cette opération.
Levée lorsque l’opération n’a pas pu être effectuée en raison d’une erreur réseau ou d’e/s.