Delen via


Application.OnShareTargetActivated(ShareTargetActivatedEventArgs) Method

Definition

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

args
ShareTargetActivatedEventArgs

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.

Applies to

See also