UIContext::WhenActivated Method (Action^)

Visual Studio 2015
 

Execute the given action if the context is active. If the context is not currently active, the action will be executed when it is first activated. The action executes at most once.

Namespace:   Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)

public:
void WhenActivated(
	Action^ action
)

Parameters

action
Type: System::Action^

The operation to execute.

Return to top
Show: