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 Platform::Object IInspectable ShareTargetActivatedEventArgs
属性
实现

Windows 要求

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

注解

ActivationKindShareTarget 时,当实现事件处理程序以响应 Activated 事件时,将访问此对象。

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

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

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

版本历史记录

Windows 版本 SDK 版本 增值
1607 14393 User

属性

Kind

获取激活类型。

PreviousExecutionState

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

ShareOperation

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

SplashScreen

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

User

获取为其激活应用的用户。

适用于

另请参阅