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

KeyClientBuilderExtensions.AddKeyClient 方法

定义

重载

AddKeyClient<TBuilder,TConfiguration>(TBuilder, TConfiguration)

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

AddKeyClient<TBuilder>(TBuilder, Uri)

KeyClient向提供的 注册实例vaultUri

AddKeyClient<TBuilder,TConfiguration>(TBuilder, TConfiguration)

Source:
KeyClientBuilderExtensions.cs
Source:
KeyClientBuilderExtensions.cs

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

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)

类型参数

TBuilder

要扩展的生成器的类型。

TConfiguration

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

参数

builder
TBuilder

要扩展的生成器。

configuration
TConfiguration

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

返回

Azure 客户端生成器。

适用于

AddKeyClient<TBuilder>(TBuilder, Uri)

Source:
KeyClientBuilderExtensions.cs
Source:
KeyClientBuilderExtensions.cs

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

类型参数

TBuilder

要扩展的生成器的类型。

参数

builder
TBuilder

要扩展的生成器。

vaultUri
Uri

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

返回

Azure 客户端生成器。

适用于