IdentityModelFactory.DeviceCodeInfo Method

Definition

Initializes a new instance of the DeviceCodeInfo(String, String, Uri, DateTimeOffset, String, String, IReadOnlyCollection<String>) class for mocking purposes.

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

Parameters

userCode
String

Sets the UserCode.

deviceCode
String

Sets the DeviceCode.

verificationUri
Uri

Sets the VerificationUri.

expiresOn
DateTimeOffset

Sets the ExpiresOn.

message
String

Sets the Message.

clientId
String

Sets the ClientId.

scopes
IReadOnlyCollection<String>

Sets the Scopes.

Returns

A new instance of the DeviceCodeInfo(String, String, Uri, DateTimeOffset, String, String, IReadOnlyCollection<String>) for mocking purposes.

Applies to