OAuthHttpClient.CreateTokenAsync 方法
命名空間: Microsoft.VisualStudio.Services.OAuth.Client
組件: Microsoft.VisualStudio.Services.WebApi (在 Microsoft.VisualStudio.Services.WebApi.dll 中)
語法
'宣告
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
)
參數
- grantType
類型:System.String
- code
類型:System.String
- refreshToken
類型:System.String
- scope
類型:System.String
- redirectUri
類型:System.String
- userState
類型:System.Object
傳回值
類型:System.Threading.Tasks.Task<AccessTokenResponse>
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。