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> ,表示异步操作的结果。

适用于