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

IClientBuilder Interface

Definition

Provides a builder interface for configuring client applications.

public interface IClientBuilder
type IClientBuilder = interface
Public Interface IClientBuilder

Methods

Name Description
ConfigureCredential(Action<IConfigurationSection>)

Adds a configuration action that mutates the Credential configuration section before it is handed to the registered CredentialResolver chain. Use this to override values such as TenantId or ClientId at registration time.

PostConfigure(Action<ClientSettings>)

Adds a configuration action to be executed after the initial configuration of ClientSettings.

Extension Methods

Name Description
WithAzureCredential(IClientBuilder)

Registers a credential factory to return a TokenCredential to use for the current IClientBuilder. If the same credential configuration has already been registered, the existing credential instance is reused.

Applies to