Language

AcquireTokenByIntegratedWindowsAuthParameterBuilder.WithUsername メソッド

定義

ユーザー名を指定します。

public Microsoft.Identity.Client.AcquireTokenByIntegratedWindowsAuthParameterBuilder WithUsername(string username);
member this.WithUsername : string -> Microsoft.Identity.Client.AcquireTokenByIntegratedWindowsAuthParameterBuilder
Public Function WithUsername (username As String) As AcquireTokenByIntegratedWindowsAuthParameterBuilder

パラメーター

username
String

統合Windows認証を使用してトークンを取得するユーザー アカウントの識別子。 一般に、UserPrincipalName (UPN) 形式 (例: john.doe@contoso.com

返品

を連結するビルダー。メソッドを使用します。

注釈

通常、ユーザー名を明示的に指定する必要はありませんが、一部のWindows管理者は、アプリケーションがサインインしているユーザーを検索できないようにポリシーを設定し、その場合はユーザー名を渡す必要があります。

適用対象