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

AuthInfo 构造函数

定义

重载

AuthInfo()

初始化 AuthInfo 类的新实例。

AuthInfo(String, String, String, String, Nullable<Int32>)

初始化 AuthInfo 类的新实例。

AuthInfo()

初始化 AuthInfo 类的新实例。

public AuthInfo ();
Public Sub New ()

适用于

AuthInfo(String, String, String, String, Nullable<Int32>)

初始化 AuthInfo 类的新实例。

public AuthInfo (string tokenType, string token, string refreshToken = default, string scope = default, int? expiresIn = default);
new Microsoft.Azure.Management.ContainerRegistry.Models.AuthInfo : string * string * string * string * Nullable<int> -> Microsoft.Azure.Management.ContainerRegistry.Models.AuthInfo
Public Sub New (tokenType As String, token As String, Optional refreshToken As String = Nothing, Optional scope As String = Nothing, Optional expiresIn As Nullable(Of Integer) = Nothing)

参数

tokenType
String

身份验证令牌的类型。 可能的值包括:“PAT”、“OAuth”

token
String

用于访问源代码管理提供程序的访问令牌。

refreshToken
String

用于刷新访问令牌的刷新令牌。

scope
String

访问令牌的范围。

expiresIn
Nullable<Int32>

令牌保持有效的时间(秒)

适用于