Application.OnShareTargetActivated(ShareTargetActivatedEventArgs) 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.
Invoked when the application is activated through sharing association.
protected:
virtual void OnShareTargetActivated(ShareTargetActivatedEventArgs ^ args) = OnShareTargetActivated;
void OnShareTargetActivated(ShareTargetActivatedEventArgs const& args);
protected virtual void OnShareTargetActivated(ShareTargetActivatedEventArgs args);
function onShareTargetActivated(args)
Protected Overridable Sub OnShareTargetActivated (args As ShareTargetActivatedEventArgs)
Parameters
Event data for the event.
Remarks
All Application overrides involved in an activation scenario should call Window.Activate in their implementations.
For example code, see Share target activation sample.
Notes for previous versions
Windows 8.x If your app is running when it is activated as a Share target, the existing instance of your app is terminated and a new instance of your app is launched to handle the contract.