Compartilhar via


AzureClientFactoryBuilder.UseCredential Método

Definição

Sobrecargas

UseCredential(TokenCredential)

Define a credencial a ser usada por padrão para todos os clientes.

UseCredential(Func<IServiceProvider,TokenCredential>)

Define a credencial a ser usada por padrão para todos os clientes.

UseCredential(TokenCredential)

Origem:
AzureClientFactoryBuilder.cs

Define a credencial a ser usada por padrão para todos os clientes.

public Microsoft.Extensions.Azure.AzureClientFactoryBuilder UseCredential (Azure.Core.TokenCredential tokenCredential);
member this.UseCredential : Azure.Core.TokenCredential -> Microsoft.Extensions.Azure.AzureClientFactoryBuilder
Public Function UseCredential (tokenCredential As TokenCredential) As AzureClientFactoryBuilder

Parâmetros

tokenCredential
TokenCredential

A credencial a ser usada.

Retornos

Esta instância.

Aplica-se a

UseCredential(Func<IServiceProvider,TokenCredential>)

Origem:
AzureClientFactoryBuilder.cs

Define a credencial a ser usada por padrão para todos os clientes.

public Microsoft.Extensions.Azure.AzureClientFactoryBuilder UseCredential (Func<IServiceProvider,Azure.Core.TokenCredential> tokenCredentialFactory);
member this.UseCredential : Func<IServiceProvider, Azure.Core.TokenCredential> -> Microsoft.Extensions.Azure.AzureClientFactoryBuilder
Public Function UseCredential (tokenCredentialFactory As Func(Of IServiceProvider, TokenCredential)) As AzureClientFactoryBuilder

Parâmetros

tokenCredentialFactory
Func<IServiceProvider,TokenCredential>

A fábrica de credenciais a ser usada.

Retornos

Esta instância.

Aplica-se a