IdentityModelFactory.DeviceCodeInfo Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- deviceCode
- String
Sets the DeviceCode.
- verificationUri
- Uri
Sets the VerificationUri.
- expiresOn
- DateTimeOffset
Sets the ExpiresOn.
- 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
Azure SDK for .NET