Share via


OAuthHttpClient.AuthorizeAsync 方法

命名空間:  Microsoft.VisualStudio.Services.OAuth.Client
組件:  Microsoft.VisualStudio.Services.WebApi (在 Microsoft.VisualStudio.Services.WebApi.dll 中)

語法

'宣告
Public Function AuthorizeAsync ( _
    clientId As String, _
    responseType As String, _
    redirectUri As String, _
    scope As String, _
    state As String, _
    userState As Object _
) As Task(Of AuthorizationResponse)
public Task<AuthorizationResponse> AuthorizeAsync(
    string clientId,
    string responseType,
    string redirectUri,
    string scope,
    string state,
    Object userState
)

參數

傳回值

類型:System.Threading.Tasks.Task<AuthorizationResponse>

.NET Framework 安全性

請參閱

參考

OAuthHttpClient 類別

Microsoft.VisualStudio.Services.OAuth.Client 命名空間