Compartilhar via


IdentityModelFactory.DeviceCodeInfo Método

Definição

Inicializa uma nova instância da DeviceCodeInfo(String, String, Uri, DateTimeOffset, String, String, IReadOnlyCollection<String>) classe para fins de simulação.

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

Parâmetros

userCode
String

Define o UserCode.

deviceCode
String

Define o DeviceCode.

verificationUri
Uri

Define o VerificationUri.

expiresOn
DateTimeOffset

Define o ExpiresOn.

message
String

Define o Message.

clientId
String

Define o ClientId.

scopes
IReadOnlyCollection<String>

Define o Scopes.

Retornos

Uma nova instância do DeviceCodeInfo(String, String, Uri, DateTimeOffset, String, String, IReadOnlyCollection<String>) para fins de zombaria.

Aplica-se a