Share via


AzureAppConfigurationKeyVaultOptions.SetCredential(TokenCredential) Method

Definition

Sets the credentials used to authenticate to key vaults that have no registered SecretClient.

public Microsoft.Extensions.Configuration.AzureAppConfiguration.AzureAppConfigurationKeyVaultOptions SetCredential (Azure.Core.TokenCredential credential);
member this.SetCredential : Azure.Core.TokenCredential -> Microsoft.Extensions.Configuration.AzureAppConfiguration.AzureAppConfigurationKeyVaultOptions
Public Function SetCredential (credential As TokenCredential) As AzureAppConfigurationKeyVaultOptions

Parameters

credential
TokenCredential

Default token credentials.

Returns

Applies to