Udostępnij za pośrednictwem


ConnectedServiceSinglePage.CreateAuthenticatorAsync Metoda

Definicja

Tworzy moduł ConnectedServiceAuthenticator, który umożliwia użytkownikom logowanie się do usługi.

public:
 virtual System::Threading::Tasks::Task<Microsoft::VisualStudio::ConnectedServices::ConnectedServiceAuthenticator ^> ^ CreateAuthenticatorAsync();
public virtual System.Threading.Tasks.Task<Microsoft.VisualStudio.ConnectedServices.ConnectedServiceAuthenticator> CreateAuthenticatorAsync ();
abstract member CreateAuthenticatorAsync : unit -> System.Threading.Tasks.Task<Microsoft.VisualStudio.ConnectedServices.ConnectedServiceAuthenticator>
override this.CreateAuthenticatorAsync : unit -> System.Threading.Tasks.Task<Microsoft.VisualStudio.ConnectedServices.ConnectedServiceAuthenticator>
Public Overridable Function CreateAuthenticatorAsync () As Task(Of ConnectedServiceAuthenticator)

Zwraca

Zadanie zwracające wystąpienie ConnectedServiceAuthenticator lub null, jeśli dostawca nie musi używać uwierzytelniania.

Uwagi

Po zamknięciu okna dialogowego rdzeni usługi połączone wywoła metodę Dispose().

Podstawowe usługi połączone używają tylko właściwości View w connectedServiceAuthenticator podczas korzystania z opcji ConnectedServiceSinglePage. Jednak inni członkowie mogą być pomocni w implementacji pojedynczej strony. Na przykład elementy członkowskie AuthenticationChanged i IsAuthenticated informują klasę ConnectedServiceSinglePage, gdy użytkownik loguje się do innego konta lub przełącza się na inne konto.

Dotyczy