语言

PasswordServiceClientCredentialFactory.CreateCredentialsAsync 方法

定义

用于创建 ServiceClientCredentials 的工厂方法。

public override System.Threading.Tasks.Task<Microsoft.Rest.ServiceClientCredentials> CreateCredentialsAsync(string appId, string oauthScope, string loginEndpoint, bool validateAuthority, System.Threading.CancellationToken cancellationToken);
override this.CreateCredentialsAsync : string * string * string * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.ServiceClientCredentials>
Public Overrides Function CreateCredentialsAsync (appId As String, oauthScope As String, loginEndpoint As String, validateAuthority As Boolean, cancellationToken As CancellationToken) As Task(Of ServiceClientCredentials)

参数

appId
String

appId。

oauthScope
String
loginEndpoint
String

登录 URL。

validateAuthority
Boolean

验证权威的使用权威。

cancellationToken
CancellationToken

取消令牌。

返回

Task<Microsoft.Rest.ServiceClientCredentials>

表示异步作结果的 Task<TResult>。

适用于