ShareTargetActivatedEventArgs ShareTargetActivatedEventArgs ShareTargetActivatedEventArgs ShareTargetActivatedEventArgs ShareTargetActivatedEventArgs Class


Provides information for an application that is a target for share operations.

JavaScript This type appears as WebUIShareTargetActivatedEventArgs.

public : sealed class ShareTargetActivatedEventArgs : IActivatedEventArgs, IActivatedEventArgsWithUser, IShareTargetActivatedEventArgs
struct winrt::Windows::ApplicationModel::Activation::ShareTargetActivatedEventArgs : IActivatedEventArgs, IActivatedEventArgsWithUser, IShareTargetActivatedEventArgs
public sealed class ShareTargetActivatedEventArgs : IActivatedEventArgs, IActivatedEventArgsWithUser, IShareTargetActivatedEventArgs
Public NotInheritable Class ShareTargetActivatedEventArgs Implements IActivatedEventArgs, IActivatedEventArgsWithUser, IShareTargetActivatedEventArgs
// This class does not provide a public constructor.

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


This object is accessed when you implement an event handler to respond to Activated events when ActivationKind is ShareTarget.

UWP app using C++, C#, or Visual Basic typically implement activation points by overriding methods of the Application object. The default template app.xaml code-behind files always include an override for OnLaunched, but defining overrides for other activation points such as OnShareTargetActivated is up to your app code.

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

For example code, see Share target activation sample.

Version history

Windows version SDK version Value added
1607 14393 User


Kind Kind Kind Kind Kind

Gets the activation type.

PreviousExecutionState PreviousExecutionState PreviousExecutionState PreviousExecutionState PreviousExecutionState

Gets the execution state of the app before it was activated.

ShareOperation ShareOperation ShareOperation ShareOperation ShareOperation

Gets information about data included in a share operation.

SplashScreen SplashScreen SplashScreen SplashScreen SplashScreen

Gets the splash screen object which provides information about the transition from the splash screen to the activated app.

User User User User User

Gets the user that the app was activated for.

See also