共用方式為


AccessTokensOperationsExtensions.GetFromLoginAsync Method

Definition

public static System.Threading.Tasks.Task<Microsoft.Azure.ContainerRegistry.Models.AccessToken> GetFromLoginAsync (this Microsoft.Azure.ContainerRegistry.IAccessTokensOperations operations, string service, string scope, System.Threading.CancellationToken cancellationToken = default);
static member GetFromLoginAsync : Microsoft.Azure.ContainerRegistry.IAccessTokensOperations * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.ContainerRegistry.Models.AccessToken>
<Extension()>
Public Function GetFromLoginAsync (operations As IAccessTokensOperations, service As String, scope As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AccessToken)

Parameters

service
String
scope
String
cancellationToken
CancellationToken

Returns

Applies to