SinglePageConfigurator.OnSelectedAccountChangedAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
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
Parameters
- account
- Microsoft.Developer.IdentityService.Account
- subscriptions
- IEnumerable<Microsoft.VisualStudio.WindowsAzure.Authentication.IAzureRMSubscription>
- activeView
- FrameworkElement
- cancellationToken
- CancellationToken
Returns
Applies to
OnSelectedAccountChangedAsync(Object, IEnumerable<IAzureRMSubscription>, FrameworkElement, CancellationToken)
Method called when the selected account has changed
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
Parameters
- account
- Object
The currently selected account
- subscriptions
- IEnumerable<Microsoft.VisualStudio.WindowsAzure.Authentication.IAzureRMSubscription>
The subscriptions associated with the account
- activeView
- FrameworkElement
The currently active view when the selected account was changed
- cancellationToken
- CancellationToken
A cancellation token to signal cancellation of the operation
Returns
A task that completes when the event has been handled. If the task is faulted, the exception will be recorded in the VS activity log.
Remarks
This method will be called on the UI thread.