命名空间: 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 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。