Partager via


OAuthHttpClient.CreateTokenAsync Method

Namespace:  Microsoft.VisualStudio.Services.OAuth.Client
Assembly:  Microsoft.VisualStudio.Services.WebApi (in Microsoft.VisualStudio.Services.WebApi.dll)

Syntax

'Declaration
Public Function CreateTokenAsync ( _
    grantType As String, _
    code As String, _
    refreshToken As String, _
    scope As String, _
    redirectUri As String, _
    userState As Object _
) As Task(Of AccessTokenResponse)
public Task<AccessTokenResponse> CreateTokenAsync(
    string grantType,
    string code,
    string refreshToken,
    string scope,
    string redirectUri,
    Object userState
)
public:
Task<AccessTokenResponse^>^ CreateTokenAsync(
    String^ grantType, 
    String^ code, 
    String^ refreshToken, 
    String^ scope, 
    String^ redirectUri, 
    Object^ userState
)
member CreateTokenAsync : 
        grantType:string * 
        code:string * 
        refreshToken:string * 
        scope:string * 
        redirectUri:string * 
        userState:Object -> Task<AccessTokenResponse> 
public function CreateTokenAsync(
    grantType : String, 
    code : String, 
    refreshToken : String, 
    scope : String, 
    redirectUri : String, 
    userState : Object
) : Task<AccessTokenResponse>

Parameters

Return Value

Type: System.Threading.Tasks.Task<AccessTokenResponse>

.NET Framework Security

See Also

Reference

OAuthHttpClient Class

Microsoft.VisualStudio.Services.OAuth.Client Namespace