你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

KeyClientBuilderExtensions.AddCryptographyClient 方法

定义

重载

AddCryptographyClient<TBuilder,TConfiguration>(TBuilder, TConfiguration)

KeyClient使用从提供的configuration实例加载的连接选项注册实例。

AddCryptographyClient<TBuilder>(TBuilder, Uri)

KeyClient向提供的 注册实例vaultUri

AddCryptographyClient<TBuilder,TConfiguration>(TBuilder, TConfiguration)

Source:
KeyClientBuilderExtensions.cs
Source:
KeyClientBuilderExtensions.cs

KeyClient使用从提供的configuration实例加载的连接选项注册实例。

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)

类型参数

TBuilder

要扩展的生成器的类型。

TConfiguration

要用于客户端生成器的配置类型。

参数

builder
TBuilder

要扩展的生成器。

configuration
TConfiguration

要用于客户端生成器的配置。

返回

Azure 客户端生成器。

适用于

AddCryptographyClient<TBuilder>(TBuilder, Uri)

Source:
KeyClientBuilderExtensions.cs
Source:
KeyClientBuilderExtensions.cs

KeyClient向提供的 注册实例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)

类型参数

TBuilder

要扩展的生成器的类型。

参数

builder
TBuilder

要扩展的生成器。

vaultUri
Uri

Azure 密钥保管库中特定密钥的 URI,例如:https://my-vault.vault.azure.net/keys/my-key

返回

Azure 客户端生成器。

适用于