Share via


SecretClientBuilderExtensions.AddSecretClient Method

Definition

Overloads

AddSecretClient<TBuilder,TConfiguration>(TBuilder, TConfiguration)

Registers a SecretClient instance with connection options loaded from the provided configuration instance.

AddSecretClient<TBuilder>(TBuilder, Uri)

Registers a SecretClient instance with the provided vaultUri

AddSecretClient<TBuilder,TConfiguration>(TBuilder, TConfiguration)

Source:
SecretClientBuilderExtensions.cs
Source:
SecretClientBuilderExtensions.cs

Registers a SecretClient instance with connection options loaded from the provided configuration instance.

public static Azure.Core.Extensions.IAzureClientBuilder<Azure.Security.KeyVault.Secrets.SecretClient,Azure.Security.KeyVault.Secrets.SecretClientOptions> AddSecretClient<TBuilder,TConfiguration> (this TBuilder builder, TConfiguration configuration) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithConfiguration<TConfiguration>;
static member AddSecretClient : 'Builder * 'Configuration -> Azure.Core.Extensions.IAzureClientBuilder<Azure.Security.KeyVault.Secrets.SecretClient, Azure.Security.KeyVault.Secrets.SecretClientOptions> (requires 'Builder :> Azure.Core.Extensions.IAzureClientFactoryBuilderWithConfiguration<'Configuration>)
<Extension()>
Public Function AddSecretClient(Of TBuilder As IAzureClientFactoryBuilderWithConfiguration(Of TConfiguration), TConfiguration As IAzureClientFactoryBuilderWithConfiguration(Of TConfiguration)) (builder As TBuilder, configuration As TConfiguration) As IAzureClientBuilder(Of SecretClient, SecretClientOptions)

Type Parameters

TBuilder
TConfiguration

Parameters

builder
TBuilder
configuration
TConfiguration

Returns

Applies to

AddSecretClient<TBuilder>(TBuilder, Uri)

Source:
SecretClientBuilderExtensions.cs
Source:
SecretClientBuilderExtensions.cs

Registers a SecretClient instance with the provided vaultUri

public static Azure.Core.Extensions.IAzureClientBuilder<Azure.Security.KeyVault.Secrets.SecretClient,Azure.Security.KeyVault.Secrets.SecretClientOptions> AddSecretClient<TBuilder> (this TBuilder builder, Uri vaultUri) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithCredential;
static member AddSecretClient : 'Builder * Uri -> Azure.Core.Extensions.IAzureClientBuilder<Azure.Security.KeyVault.Secrets.SecretClient, Azure.Security.KeyVault.Secrets.SecretClientOptions> (requires 'Builder :> Azure.Core.Extensions.IAzureClientFactoryBuilderWithCredential)
<Extension()>
Public Function AddSecretClient(Of TBuilder As IAzureClientFactoryBuilderWithCredential) (builder As TBuilder, vaultUri As Uri) As IAzureClientBuilder(Of SecretClient, SecretClientOptions)

Type Parameters

TBuilder

Parameters

builder
TBuilder
vaultUri
Uri

Returns

Applies to