Compartir a través de


SinglePageConfigurator.OnSelectedAccountChangedAsync Método

Definición

Sobrecargas

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

Método al que se llama cuando la cuenta seleccionada ha cambiado

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

Devoluciones

Se aplica a

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

Método al que se llama cuando la cuenta seleccionada ha cambiado

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

La cuenta seleccionada actualmente

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

Suscripciones asociadas a la cuenta

activeView
FrameworkElement

Vista activa actualmente cuando se cambió la cuenta seleccionada

cancellationToken
CancellationToken

Token de cancelación para indicar la cancelación de la operación

Devoluciones

Tarea que se completa cuando se ha controlado el evento. Si se produce un error en la tarea, la excepción se registrará en el registro de actividad de VS.

Comentarios

Se llamará a este método en el subproceso de la interfaz de usuario.

Se aplica a