CertificateServiceClientCredentialsFactory.CreateCredentialsAsync 方法

定义

用于创建 ServiceClientCredentials 的工厂方法。

public override System.Threading.Tasks.Task<Microsoft.Rest.ServiceClientCredentials> CreateCredentialsAsync (string appId, string audience, 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, 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>

适用于