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

IRepositoryBranchAndAuth.WithRepositoryAuthentication 方法

定义

重载

WithRepositoryAuthentication(TokenType, String)

允许用户输入用于身份验证的令牌类型以及用于向源代码管理存储库进行身份验证的令牌本身的函数。

WithRepositoryAuthentication(TokenType, String, String, String, Int32)

允许用户输入用于身份验证的令牌类型以及用于向源代码管理存储库进行身份验证的令牌本身的函数。

WithRepositoryAuthentication(TokenType, String)

允许用户输入用于身份验证的令牌类型以及用于向源代码管理存储库进行身份验证的令牌本身的函数。

public Microsoft.Azure.Management.ContainerRegistry.Fluent.RegistrySourceTrigger.UpdateDefinition.ISourceTriggerAttachable WithRepositoryAuthentication (Microsoft.Azure.Management.ContainerRegistry.Fluent.Models.TokenType tokenType, string token);
abstract member WithRepositoryAuthentication : Microsoft.Azure.Management.ContainerRegistry.Fluent.Models.TokenType * string -> Microsoft.Azure.Management.ContainerRegistry.Fluent.RegistrySourceTrigger.UpdateDefinition.ISourceTriggerAttachable
Public Function WithRepositoryAuthentication (tokenType As TokenType, token As String) As ISourceTriggerAttachable

参数

tokenType
TokenType

用于向源代码管理存储库进行身份验证的令牌的类型。

token
String

用于向源代码管理存储库进行身份验证的令牌。

返回

适用于

WithRepositoryAuthentication(TokenType, String, String, String, Int32)

允许用户输入用于身份验证的令牌类型以及用于向源代码管理存储库进行身份验证的令牌本身的函数。

public Microsoft.Azure.Management.ContainerRegistry.Fluent.RegistrySourceTrigger.UpdateDefinition.ISourceTriggerAttachable WithRepositoryAuthentication (Microsoft.Azure.Management.ContainerRegistry.Fluent.Models.TokenType tokenType, string token, string refreshToken, string scope, int expiresIn);
abstract member WithRepositoryAuthentication : Microsoft.Azure.Management.ContainerRegistry.Fluent.Models.TokenType * string * string * string * int -> Microsoft.Azure.Management.ContainerRegistry.Fluent.RegistrySourceTrigger.UpdateDefinition.ISourceTriggerAttachable
Public Function WithRepositoryAuthentication (tokenType As TokenType, token As String, refreshToken As String, scope As String, expiresIn As Integer) As ISourceTriggerAttachable

参数

tokenType
TokenType

用于向源代码管理存储库进行身份验证的令牌的类型。

token
String

用于向源代码管理存储库进行身份验证的令牌。

refreshToken
String

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

scope
String

访问令牌的范围。

expiresIn
Int32

令牌保持有效的时间(以秒为单位)。

返回

适用于