命名空间: 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
)
参数
- clientId
类型:System.String
- responseType
类型:System.String
- redirectUri
类型:System.String
- scope
类型:System.String
- state
类型:System.String
- userState
类型:System.Object
返回值
类型:System.Threading.Tasks.Task<AuthorizationResponse>
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。