SinglePageConfigurator.OnSelectedAccountChangedAsync Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Surcharges
| OnSelectedAccountChangedAsync(Account, IEnumerable<IAzureRMSubscription>, FrameworkElement, CancellationToken) | |
| OnSelectedAccountChangedAsync(Object, IEnumerable<IAzureRMSubscription>, FrameworkElement, CancellationToken) |
Méthode appelée lorsque le compte sélectionné a changé |
OnSelectedAccountChangedAsync(Account, IEnumerable<IAzureRMSubscription>, FrameworkElement, CancellationToken)
public:
abstract System::Threading::Tasks::Task ^ OnSelectedAccountChangedAsync(Microsoft::Developer::IdentityService::Account ^ account, System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::WindowsAzure::Authentication::IAzureRMSubscription ^> ^ subscriptions, System::Windows::FrameworkElement ^ activeView, System::Threading::CancellationToken cancellationToken);
public abstract System.Threading.Tasks.Task OnSelectedAccountChangedAsync(Microsoft.Developer.IdentityService.Account account, System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.WindowsAzure.Authentication.IAzureRMSubscription> subscriptions, System.Windows.FrameworkElement activeView, System.Threading.CancellationToken cancellationToken);
abstract member OnSelectedAccountChangedAsync : Microsoft.Developer.IdentityService.Account * seq<Microsoft.VisualStudio.WindowsAzure.Authentication.IAzureRMSubscription> * System.Windows.FrameworkElement * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public MustOverride Function OnSelectedAccountChangedAsync (account As Account, subscriptions As IEnumerable(Of IAzureRMSubscription), activeView As FrameworkElement, cancellationToken As CancellationToken) As Task
Paramètres
- account
- Microsoft.Developer.IdentityService.Account
- subscriptions
- IEnumerable<Microsoft.VisualStudio.WindowsAzure.Authentication.IAzureRMSubscription>
- activeView
- FrameworkElement
- cancellationToken
- CancellationToken
Retours
S’applique à
OnSelectedAccountChangedAsync(Object, IEnumerable<IAzureRMSubscription>, FrameworkElement, CancellationToken)
Méthode appelée lorsque le compte sélectionné a changé
public:
abstract System::Threading::Tasks::Task ^ OnSelectedAccountChangedAsync(System::Object ^ account, System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::WindowsAzure::Authentication::IAzureRMSubscription ^> ^ subscriptions, System::Windows::FrameworkElement ^ activeView, System::Threading::CancellationToken cancellationToken);
public abstract System.Threading.Tasks.Task OnSelectedAccountChangedAsync(object account, System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.WindowsAzure.Authentication.IAzureRMSubscription> subscriptions, System.Windows.FrameworkElement activeView, System.Threading.CancellationToken cancellationToken);
abstract member OnSelectedAccountChangedAsync : obj * seq<Microsoft.VisualStudio.WindowsAzure.Authentication.IAzureRMSubscription> * System.Windows.FrameworkElement * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public MustOverride Function OnSelectedAccountChangedAsync (account As Object, subscriptions As IEnumerable(Of IAzureRMSubscription), activeView As FrameworkElement, cancellationToken As CancellationToken) As Task
Paramètres
- account
- Object
Compte actuellement sélectionné
- subscriptions
- IEnumerable<Microsoft.VisualStudio.WindowsAzure.Authentication.IAzureRMSubscription>
Abonnements associés au compte
- activeView
- FrameworkElement
Affichage actuellement actif lorsque le compte sélectionné a été modifié
- cancellationToken
- CancellationToken
Jeton d’annulation pour signaler l’annulation de l’opération
Retours
Tâche qui se termine lorsque l’événement a été géré. Si la tâche est défectueuse, l’exception est enregistrée dans le journal d’activité vs.
Remarques
Cette méthode sera appelée sur le thread d’interface utilisateur.