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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for