Share via


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

ClientSecretCredential 构造函数

定义

重载

ClientSecretCredential()

用于模拟的受保护构造函数。

ClientSecretCredential(String, String, String)

创建 ClientSecretCredential 的实例,其中包含使用客户端密码针对Microsoft Entra ID 进行身份验证所需的详细信息。

ClientSecretCredential(String, String, String, ClientSecretCredentialOptions)

创建 ClientSecretCredential 的实例,其中包含使用客户端密码针对Microsoft Entra ID 进行身份验证所需的详细信息。

ClientSecretCredential(String, String, String, TokenCredentialOptions)

创建 ClientSecretCredential 的实例,其中包含使用客户端密码针对Microsoft Entra ID 进行身份验证所需的详细信息。

ClientSecretCredential()

用于模拟的受保护构造函数。

protected ClientSecretCredential ();
Protected Sub New ()

适用于

ClientSecretCredential(String, String, String)

创建 ClientSecretCredential 的实例,其中包含使用客户端密码针对Microsoft Entra ID 进行身份验证所需的详细信息。

public ClientSecretCredential (string tenantId, string clientId, string clientSecret);
new Azure.Identity.ClientSecretCredential : string * string * string -> Azure.Identity.ClientSecretCredential
Public Sub New (tenantId As String, clientId As String, clientSecret As String)

参数

tenantId
String

Azure Active Directory 租户 (目录) 服务主体的 ID。

clientId
String

客户端 (应用程序) 服务主体的 ID

clientSecret
String

为应用注册生成的客户端密码,用于对客户端进行身份验证。

适用于

ClientSecretCredential(String, String, String, ClientSecretCredentialOptions)

创建 ClientSecretCredential 的实例,其中包含使用客户端密码针对Microsoft Entra ID 进行身份验证所需的详细信息。

public ClientSecretCredential (string tenantId, string clientId, string clientSecret, Azure.Identity.ClientSecretCredentialOptions options);
new Azure.Identity.ClientSecretCredential : string * string * string * Azure.Identity.ClientSecretCredentialOptions -> Azure.Identity.ClientSecretCredential
Public Sub New (tenantId As String, clientId As String, clientSecret As String, options As ClientSecretCredentialOptions)

参数

tenantId
String

Azure Active Directory 租户 (目录) 服务主体的 ID。

clientId
String

客户端 (应用程序) 服务主体的 ID

clientSecret
String

为应用注册生成的客户端密码,用于对客户端进行身份验证。

options
ClientSecretCredentialOptions

允许配置发送到 Azure Active Directory 服务的请求管理的选项。

适用于

ClientSecretCredential(String, String, String, TokenCredentialOptions)

创建 ClientSecretCredential 的实例,其中包含使用客户端密码针对Microsoft Entra ID 进行身份验证所需的详细信息。

public ClientSecretCredential (string tenantId, string clientId, string clientSecret, Azure.Identity.TokenCredentialOptions options);
new Azure.Identity.ClientSecretCredential : string * string * string * Azure.Identity.TokenCredentialOptions -> Azure.Identity.ClientSecretCredential
Public Sub New (tenantId As String, clientId As String, clientSecret As String, options As TokenCredentialOptions)

参数

tenantId
String

Azure Active Directory 租户 (目录) 服务主体的 ID。

clientId
String

客户端 (应用程序) 服务主体的 ID

clientSecret
String

为应用注册生成的客户端密码,用于对客户端进行身份验证。

options
TokenCredentialOptions

允许配置发送到 Azure Active Directory 服务的请求管理的选项。

适用于