メイン コンテンツにスキップ

 Subscribe

protectedasyncoverridevoid OnNavigatedTo(NavigationEventArgs e)

{

    while (App.MobileService.CurrentUser == null)

    {

        bool cancelled = false;

 

        try

        {

            awaitApp.MobileService.LoginAsync(

                MobileServiceAuthenticationProvider.Twitter);

        }

        catch (InvalidOperationException)

        {

            cancelled = true;

        }

 

        if (cancelled)

        {

            awaitnew Windows.UI.Popups.MessageDialog(

                    “You must login to use this app”, “Login”).ShowAsync();

        }

    }

 

    RefreshTodoItems();

}

  • Explore

     

    Let us know what you think of Azure and what you would like to see in the future.

     

    Provide feedback

  • Build your cloud computing and Azure skills with free courses by Microsoft Learn.

     

    Explore Azure learning


Join the conversation