共用方式為


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

取得啟動應用程式的使用者。

適用於

另請參閱