Språk

ServiceClientCredentialsFactory.CreateCredentialsAsync Metod

Definition

En fabriksmetod för att skapa 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)

Parametrar

appId
String

AppId.

audience
String

Åhörarna.

loginEndpoint
String

Inloggnings-URL:en.

validateAuthority
Boolean

Validera auktoritetsvalet att använda.

cancellationToken
CancellationToken

En annulleringstoken.

Returer

Task<Microsoft.Rest.ServiceClientCredentials>

A som Task<TResult> representerar resultatet av den asynkrona operationen.

Gäller för