Compartilhar via


SinglePageConfigurator.OnSelectedAccountChangedAsync Método

Definição

Sobrecargas

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

Método chamado quando a conta selecionada foi alterada

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

Parâmetros

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

Retornos

Aplica-se a

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

Método chamado quando a conta selecionada foi alterada

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

Parâmetros

account
Object

A conta selecionada no momento

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

As assinaturas associadas à conta

activeView
FrameworkElement

A exibição ativa no momento quando a conta selecionada foi alterada

cancellationToken
CancellationToken

Um token de cancelamento para sinalizar o cancelamento da operação

Retornos

Uma tarefa que é concluída quando o evento foi tratado. Se a tarefa tiver falha, a exceção será registrada no log de atividades do VS.

Comentários

Esse método será chamado no thread da interface do usuário.

Aplica-se a