Jaa


ShareTargetActivatedEventArgs Class

Definition

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

JavaScript This type appears as WebUIShareTargetActivatedEventArgs.

public ref class ShareTargetActivatedEventArgs sealed : IShareTargetActivatedEventArgs
public ref class ShareTargetActivatedEventArgs sealed : IActivatedEventArgsWithUser, IShareTargetActivatedEventArgs
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class ShareTargetActivatedEventArgs final : IShareTargetActivatedEventArgs
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class ShareTargetActivatedEventArgs final : IActivatedEventArgsWithUser, IShareTargetActivatedEventArgs
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class ShareTargetActivatedEventArgs : IShareTargetActivatedEventArgs
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class ShareTargetActivatedEventArgs : IActivatedEventArgsWithUser, IShareTargetActivatedEventArgs
Public NotInheritable Class ShareTargetActivatedEventArgs
Implements IShareTargetActivatedEventArgs
Public NotInheritable Class ShareTargetActivatedEventArgs
Implements IActivatedEventArgsWithUser, IShareTargetActivatedEventArgs
Inheritance
Object Platform::Object IInspectable ShareTargetActivatedEventArgs
Attributes
Implements

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Remarks

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

Properties

Kind

Gets the activation type.

PreviousExecutionState

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

ShareOperation

Gets information about data included in a share operation.

SplashScreen

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

User

Gets the user that the app was activated for.

Applies to

See also