语言

ServiceClientCredentialsFactory.CreateCredentialsAsync 方法

定义

用于创建 ServiceClientCredentials 的工厂方法。

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

参数

appId
String

appId。

audience
String

受众。

loginEndpoint
String

登录 URL。

validateAuthority
Boolean

验证权威的使用权威。

cancellationToken
CancellationToken

取消令牌。

返回

Task<Microsoft.Rest.ServiceClientCredentials>

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

适用于