Språk

PasswordServiceClientCredentialFactory.CreateCredentialsAsync Metod

Definition

En fabriksmetod för att skapa ServiceClientCredentials.

public override System.Threading.Tasks.Task<Microsoft.Rest.ServiceClientCredentials> CreateCredentialsAsync(string appId, string oauthScope, 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, oauthScope As String, loginEndpoint As String, validateAuthority As Boolean, cancellationToken As CancellationToken) As Task(Of ServiceClientCredentials)

Parametrar

appId
String

AppId.

oauthScope
String
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