ShareTargetActivatedEventArgs 类

定义

提供有关作为共享操作目标的应用程序的信息。

Javascript 此类型显示为 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
继承
Object IInspectable ShareTargetActivatedEventArgs
属性
实现

Windows 要求

设备系列
Windows 10 (在 10.0.10240.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)

注解

实现事件处理程序以响应 ShareTarget 时的事件ActivatedActivationKind,会访问此对象。

使用 C++、C# 或 Visual Basic的 UWP 应用通常通过重写对象的方法Application实现激活点。 默认模板 app.xaml 代码隐藏文件始终包含替代, OnLaunched但定义其他激活点的替代,例如 OnShareTargetActivated ,由应用代码决定。

激活方案中涉及的所有 Application 替代都应在其实现中调用 Window.Activate

有关示例代码,请参阅 共享目标激活示例

版本历史记录

Windows 版本 SDK 版本 已添加值
1607 14393 User

属性

Kind

获取激活类型。

PreviousExecutionState

获取应用在激活前的执行状态。

ShareOperation

获取有关共享操作中包含的数据的信息。

SplashScreen

获取初始屏幕对象,该对象提供有关从初始屏幕过渡到激活的应用的信息。

User

获取激活应用的用户。

适用于

另请参阅