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

AzureClientCredentials Class

Definition

Represents the credentials used to authenticate with Azure services.

public class AzureClientCredentials : System.ServiceModel.Description.ClientCredentials
type AzureClientCredentials = class
    inherit ClientCredentials
Public Class AzureClientCredentials
Inherits ClientCredentials
Inheritance
AzureClientCredentials

Constructors

AzureClientCredentials()

Initializes a new instance of the AzureClientCredentials class.

AzureClientCredentials(AzureClientCredentials)

Initializes a new instance of the AzureClientCredentials class cloning an existing instance.

Properties

Audience

Gets or sets the audience to use for authentication with Microsoft Entra ID. The audience isn't considered when using a shared key.

ConnectionString

Gets or sets the connection string containing credentials.

DefaultAzureCredentialOptions

Gets of sets the Azure.Identity.DefaultAzureCredentialOptions instance used with DefaultAzureCredentials.

EnableTenantDiscovery

Enables tenant discovery through the authorization challenge when the client is configured to use a TokenCredential.

Sas

Gets or sets the Azure.AzureSasCredential (shared access signature) credential.

StorageSharedKey

Gets or sets the Azure.Storage.StorageSharedKeyCredential credential.

Token

Gets or sets the Azure.Core.TokenCredential credential.

Methods

CloneCore()

Creates a new copy of this AzureClientCredentials instance.

CreateSecurityTokenManager()

Creates a security token manager for this instance.

Applies to