語言

ManagedIdentityServiceClientCredentialsFactory.CreateCredentialsAsync 方法

定義

用來建立 ServiceClientCredentials 的 Factory 方法。

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>,表示異步作的結果。

適用於