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

适用于