ShareTargetActivatedEventArgs class
TOC
Collapse the table of content
Expand the table of content

ShareTargetActivatedEventArgs class

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

JavaScript:  This type appears as WebUIShareTargetActivatedEventArgs.

Syntax


public sealed class ShareTargetActivatedEventArgs : IShareTargetActivatedEventArgs,
    IActivatedEventArgs

Members

The ShareTargetActivatedEventArgs class has these types of members:

Properties

The ShareTargetActivatedEventArgs class has these properties.

PropertyAccess typeDescription

Kind

Read-only

Gets the activation type.

PreviousExecutionState

Read-only

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

ShareOperation

Read-only

Gets information about data included in a share operation.

SplashScreen

Read-only

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

User

Read-only

Gets the user that the app was activated for.

 

Remarks

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

Windows Store apps 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.

Requirements (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.ApplicationModel.Activation
Windows::ApplicationModel::Activation [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8

Namespace

Windows.ApplicationModel.Activation
Windows::ApplicationModel::Activation [C++]

Metadata

Windows.winmd

Attributes

[MarshalingBehavior(Agile)]
[Version(0x06020000)]

See also

Object
IShareTargetActivatedEventArgs
IActivatedEventArgs
Windows.UI.Core.CoreApplicationView.Activated
Share target activation sample

 

 

Show:
© 2016 Microsoft