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 configuration instance.

AddKeyClient<TBuilder>(TBuilder, Uri)

Registers a KeyClient instance with the provided vaultUri

AddKeyClient<TBuilder,TConfiguration>(TBuilder, TConfiguration)

Source:
KeyClientBuilderExtensions.cs
Source:
KeyClientBuilderExtensions.cs

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

C#
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>;

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

Azure SDK for .NET Preview and Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest, Preview

AddKeyClient<TBuilder>(TBuilder, Uri)

Source:
KeyClientBuilderExtensions.cs
Source:
KeyClientBuilderExtensions.cs

Registers a KeyClient instance with the provided vaultUri

C#
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;

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.

Applies to

Azure SDK for .NET Preview and Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest, Preview