Freigeben über


ServiceClientCredentialsFactory.CreateCredentialsAsync Methode

Definition

Eine Factorymethode zum Erstellen von 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)

Parameter

appId
String

Die appId.

audience
String

Die Zielgruppe.

loginEndpoint
String

Die Anmelde-URL.

validateAuthority
Boolean

Die zu verwendende Validierungsberechtigung.

cancellationToken
CancellationToken

Ein Abbruchtoken.

Gibt zurück

Task<Microsoft.Rest.ServiceClientCredentials>

Ein Task<TResult> , der das Ergebnis des asynchronen Vorgangs darstellt.

Gilt für: