On Activated(IActivatedEventArgs) Method
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.
Invoked when the application is activated by some means other than normal launching.
protected: virtual void OnActivated(IActivatedEventArgs ^ args) = OnActivated;
void OnActivated(IActivatedEventArgs const& args);
protected virtual void OnActivated(IActivatedEventArgs args);
Protected Overridable Sub OnActivated (args As IActivatedEventArgs)
Event data for the event.
When a user launches your app normally (for example, by tapping the app tile), only the OnLaunched method is called. Override the OnActivated method to perform any general app initialization that should occur only when the app is not launched normally (for example, from another app through the Search contract). You can determine how the app was activated through the IActivatedEventArgs.Kind property.
For most kinds of activation, you can perform initialization specific to the activation type by overriding one of the following methods instead of the OnActivated method:
For more info, see App lifecycle.
Submit and view feedback for