Application.OnShareTargetActivated(ShareTargetActivatedEventArgs) Application.OnShareTargetActivated(ShareTargetActivatedEventArgs) Application.OnShareTargetActivated(ShareTargetActivatedEventArgs) Application.OnShareTargetActivated(ShareTargetActivatedEventArgs) Method

Definition

Invoked when the application is activated through sharing association.

protected : virtual void OnShareTargetActivated(ShareTargetActivatedEventArgs args)
virtual void OnShareTargetActivated(ShareTargetActivatedEventArgs args) const;
protected virtual void OnShareTargetActivated(ShareTargetActivatedEventArgs args)
Protected Overridable Sub OnShareTargetActivated(args As ShareTargetActivatedEventArgs)

Parameters

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.

See also