Sdílet prostřednictvím


SinglePageConfigurator.OnSelectedAccountChangedAsync Metoda

Definice

Přetížení

OnSelectedAccountChangedAsync(Account, IEnumerable<IAzureRMSubscription>, FrameworkElement, CancellationToken)
OnSelectedAccountChangedAsync(Object, IEnumerable<IAzureRMSubscription>, FrameworkElement, CancellationToken)

Metoda volaná při změně vybraného účtu

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

Parametry

account
Microsoft.Developer.IdentityService.Account
subscriptions
IEnumerable<Microsoft.VisualStudio.WindowsAzure.Authentication.IAzureRMSubscription>
activeView
FrameworkElement
cancellationToken
CancellationToken

Návraty

Platí pro

OnSelectedAccountChangedAsync(Object, IEnumerable<IAzureRMSubscription>, FrameworkElement, CancellationToken)

Metoda volaná při změně vybraného účtu

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

Parametry

account
Object

Aktuálně vybraný účet

subscriptions
IEnumerable<Microsoft.VisualStudio.WindowsAzure.Authentication.IAzureRMSubscription>

Předplatná přidružená k účtu

activeView
FrameworkElement

Aktuálně aktivní zobrazení při změně vybraného účtu

cancellationToken
CancellationToken

Token zrušení pro signál zrušení operace

Návraty

Úkol, který se dokončí, když byla událost zpracována. Pokud dojde k chybě úlohy, výjimka se zaznamená do protokolu aktivit VS.

Poznámky

Tato metoda bude volána ve vlákně uživatelského rozhraní.

Platí pro