AcquireTokenInteractiveParameterBuilder.WithAccount(IAccount) 메서드

정의

토큰을 검색할 계정을 설정합니다. 이 메서드는 .와 WithLoginHint(String)함께 사용할 수 없습니다. 둘 다 사용되는 경우 예외가 throw됩니다.

public Microsoft.Identity.Client.AcquireTokenInteractiveParameterBuilder WithAccount(Microsoft.Identity.Client.IAccount account);
member this.WithAccount : Microsoft.Identity.Client.IAccount -> Microsoft.Identity.Client.AcquireTokenInteractiveParameterBuilder
Public Function WithAccount (account As IAccount) As AcquireTokenInteractiveParameterBuilder

매개 변수

account
IAccount

대화형 토큰 획득에 사용할 계정입니다. 계정을 가져오는 방법을 참조 IAccount 하세요.

반품

를 연결할 작성기입니다. 메서드를 사용하여

설명

AAD가 요청되는 계정과 다른 계정을 반환하는 경우 예외가 throw됩니다.

적용 대상