AppInfo.Current 屬性

定義

擷取對應至目前執行中進程的 AppInfo 物件。

public:
 static property AppInfo ^ Current { AppInfo ^ get(); };
static AppInfo Current();
public static AppInfo Current { get; }
var appInfo = AppInfo.current;
Public Shared ReadOnly Property Current As AppInfo

屬性值

對應至進程的 AppInfo。

Windows 需求

裝置系列
Windows 10, version 2004 (已於 10.0.19041.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v10.0 引進)

備註

當未封裝的應用程式使用時,存取這個屬性會擲回具有 HRESULT 80073D54InvalidOperationException,指出「進程沒有套件識別」。

適用於