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

IdentityModelFactory.AuthenticationRecord 方法

定义

初始化 类的新实例 AuthenticationRecord(String, String, String, String, String) 以进行模拟。

public static Azure.Identity.AuthenticationRecord AuthenticationRecord (string username, string authority, string homeAccountId, string tenantId, string clientId);
static member AuthenticationRecord : string * string * string * string * string -> Azure.Identity.AuthenticationRecord
Public Shared Function AuthenticationRecord (username As String, authority As String, homeAccountId As String, tenantId As String, clientId As String) As AuthenticationRecord

参数

username
String

设置 Username

authority
String

设置 Authority

homeAccountId
String

设置 HomeAccountId

tenantId
String

设置 TenantId

clientId
String

设置 ClientId

返回

用于模拟目的的 的新实例 AuthenticationRecord(String, String, String, String, String)

适用于