Share via


DeviceCodeCredentialOptions.DisableAutomaticAuthentication プロパティ

定義

DeviceCodeCredential 自動的にユーザーにプロンプトを表示しないようにします。 自動認証が無効になっている場合、ユーザー操作が必要な場合は、 と GetTokenAsync(TokenRequestContext, CancellationToken) から GetToken(TokenRequestContext, CancellationToken) AuthenticationRequiredException がスローされます。 アプリケーションは、この例外を処理し、 または AuthenticateAsync(CancellationToken) を呼び出Authenticate(CancellationToken)してユーザーを対話形式で認証する役割を担います。

public bool DisableAutomaticAuthentication { get; set; }
member this.DisableAutomaticAuthentication : bool with get, set
Public Property DisableAutomaticAuthentication As Boolean

プロパティ値

適用対象