KeyClientBuilderExtensions.AddCryptographyClient 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
AddCryptographyClient<TBuilder,TConfiguration>(TBuilder, TConfiguration) |
Registers a CryptographyClient instance with connection options loaded from the provided |
AddCryptographyClient<TBuilder>(TBuilder, Uri) |
Registers a CryptographyClient instance with the provided |
AddCryptographyClient<TBuilder,TConfiguration>(TBuilder, TConfiguration)
Registers a CryptographyClient instance with connection options loaded from the provided configuration
instance.
public static Azure.Core.Extensions.IAzureClientBuilder<Azure.Security.KeyVault.Keys.Cryptography.CryptographyClient,Azure.Security.KeyVault.Keys.Cryptography.CryptographyClientOptions> AddCryptographyClient<TBuilder,TConfiguration> (this TBuilder builder, TConfiguration configuration) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithConfiguration<TConfiguration>;
static member AddCryptographyClient : 'Builder * 'Configuration -> Azure.Core.Extensions.IAzureClientBuilder<Azure.Security.KeyVault.Keys.Cryptography.CryptographyClient, Azure.Security.KeyVault.Keys.Cryptography.CryptographyClientOptions> (requires 'Builder :> Azure.Core.Extensions.IAzureClientFactoryBuilderWithConfiguration<'Configuration>)
<Extension()>
Public Function AddCryptographyClient(Of TBuilder As IAzureClientFactoryBuilderWithConfiguration(Of TConfiguration), TConfiguration As IAzureClientFactoryBuilderWithConfiguration(Of TConfiguration)) (builder As TBuilder, configuration As TConfiguration) As IAzureClientBuilder(Of CryptographyClient, CryptographyClientOptions)
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
AddCryptographyClient<TBuilder>(TBuilder, Uri)
Registers a CryptographyClient instance with the provided vaultUri
public static Azure.Core.Extensions.IAzureClientBuilder<Azure.Security.KeyVault.Keys.Cryptography.CryptographyClient,Azure.Security.KeyVault.Keys.Cryptography.CryptographyClientOptions> AddCryptographyClient<TBuilder> (this TBuilder builder, Uri vaultUri) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithCredential;
static member AddCryptographyClient : 'Builder * Uri -> Azure.Core.Extensions.IAzureClientBuilder<Azure.Security.KeyVault.Keys.Cryptography.CryptographyClient, Azure.Security.KeyVault.Keys.Cryptography.CryptographyClientOptions> (requires 'Builder :> Azure.Core.Extensions.IAzureClientFactoryBuilderWithCredential)
<Extension()>
Public Function AddCryptographyClient(Of TBuilder As IAzureClientFactoryBuilderWithCredential) (builder As TBuilder, vaultUri As Uri) As IAzureClientBuilder(Of CryptographyClient, CryptographyClientOptions)
Type Parameters
- TBuilder
The type of builder to extend.
Parameters
- builder
- TBuilder
The builder to extend.
- vaultUri
- Uri
The URI to a specific key in an Azure Key Vault, for example: https://my-vault.vault.azure.net/keys/my-key
Returns
An Azure client builder.