Jaa


AppInfo.Current Property

Definition

Retrieves the AppInfo object corresponding to the currently running process.

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

Property Value

The AppInfo that corresponds to the process.

Windows requirements

Device family
Windows 10, version 2004 (introduced in 10.0.19041.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v10.0)

Remarks

When used by an unpackaged application, accessing this property throws an InvalidOperationException with HRESULT 80073D54, indicating "The process has no package identity."

Applies to