Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Application.OnShareTargetActivated method

Applies to Windows and Windows Phone

Invoked when the application is activated through sharing association.

Syntax


protected virtual void OnShareTargetActivated(
  ShareTargetActivatedEventArgs args
)

Parameters

args

Type: ShareTargetActivatedEventArgs

Event data for the event.

Remarks

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.

All Application overrides involved in an activation scenario should call Window.Activate in their implementations.

For example code, see Share target activation sample.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml
Windows::UI::Xaml [C++]

Metadata

Windows.winmd

See also

Application
ShareOperation
Share target activation sample

 

 

Show:
© 2014 Microsoft