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
- grantType
Type: System.String
- code
Type: System.String
- refreshToken
Type: System.String
- scope
Type: System.String
- redirectUri
Type: System.String
- userState
Type: System.Object
Return Value
Type: System.Threading.Tasks.Task<AccessTokenResponse>
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.