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

IdentityModelFactory.DeviceCodeInfo 方法

定义

public static Azure.Identity.DeviceCodeInfo DeviceCodeInfo (string userCode, string deviceCode, Uri verificationUri, DateTimeOffset expiresOn, string message, string clientId, System.Collections.Generic.IReadOnlyCollection<string> scopes);
static member DeviceCodeInfo : string * string * Uri * DateTimeOffset * string * string * System.Collections.Generic.IReadOnlyCollection<string> -> Azure.Identity.DeviceCodeInfo
Public Shared Function DeviceCodeInfo (userCode As String, deviceCode As String, verificationUri As Uri, expiresOn As DateTimeOffset, message As String, clientId As String, scopes As IReadOnlyCollection(Of String)) As DeviceCodeInfo

参数

userCode
String

设置 UserCode

deviceCode
String

设置 DeviceCode

verificationUri
Uri

设置 VerificationUri

expiresOn
DateTimeOffset

设置 ExpiresOn

message
String

设置 Message

clientId
String

设置 ClientId

scopes
IReadOnlyCollection<String>

设置 Scopes

返回

用于模拟目的的 的新实例 DeviceCodeInfo(String, String, Uri, DateTimeOffset, String, String, IReadOnlyCollection<String>)

适用于