KeyClientBuilderExtensions.AddKeyClient Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AddKeyClient<TBuilder,TConfiguration>(TBuilder, TConfiguration) |
Registers a KeyClient instance with connection options loaded from the provided |
AddKeyClient<TBuilder>(TBuilder, Uri) |
Registers a KeyClient instance with the provided |
AddKeyClient<TBuilder,TConfiguration>(TBuilder, TConfiguration)
Registers a KeyClient instance with connection options loaded from the provided configuration
instance.
public static Azure.Core.Extensions.IAzureClientBuilder<Azure.Security.KeyVault.Keys.KeyClient,Azure.Security.KeyVault.Keys.KeyClientOptions> AddKeyClient<TBuilder,TConfiguration> (this TBuilder builder, TConfiguration configuration) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithConfiguration<TConfiguration>;
static member AddKeyClient : 'Builder * 'Configuration -> Azure.Core.Extensions.IAzureClientBuilder<Azure.Security.KeyVault.Keys.KeyClient, Azure.Security.KeyVault.Keys.KeyClientOptions> (requires 'Builder :> Azure.Core.Extensions.IAzureClientFactoryBuilderWithConfiguration<'Configuration>)
<Extension()>
Public Function AddKeyClient(Of TBuilder As IAzureClientFactoryBuilderWithConfiguration(Of TConfiguration), TConfiguration As IAzureClientFactoryBuilderWithConfiguration(Of TConfiguration)) (builder As TBuilder, configuration As TConfiguration) As IAzureClientBuilder(Of KeyClient, KeyClientOptions)
Type Parameters
- TBuilder
The type of builder to extend.
- TConfiguration
The type of configuration to use for the client builder.
Parameters
- builder
- TBuilder
The builder to extend.
- configuration
- TConfiguration
The configuration to use for the client builder.
Returns
An Azure client builder.
Applies to
AddKeyClient<TBuilder>(TBuilder, Uri)
Registers a KeyClient instance with the provided vaultUri
public static Azure.Core.Extensions.IAzureClientBuilder<Azure.Security.KeyVault.Keys.KeyClient,Azure.Security.KeyVault.Keys.KeyClientOptions> AddKeyClient<TBuilder> (this TBuilder builder, Uri vaultUri) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithCredential;
static member AddKeyClient : 'Builder * Uri -> Azure.Core.Extensions.IAzureClientBuilder<Azure.Security.KeyVault.Keys.KeyClient, Azure.Security.KeyVault.Keys.KeyClientOptions> (requires 'Builder :> Azure.Core.Extensions.IAzureClientFactoryBuilderWithCredential)
<Extension()>
Public Function AddKeyClient(Of TBuilder As IAzureClientFactoryBuilderWithCredential) (builder As TBuilder, vaultUri As Uri) As IAzureClientBuilder(Of KeyClient, KeyClientOptions)
Type Parameters
- TBuilder
The type of builder to extend.
Parameters
- builder
- TBuilder
The builder to extend.
- vaultUri
- Uri
The URI to an Azure Key Vault, for example: https://my-vault.vault.azure.net
Returns
An Azure client builder.