Windows.ApplicationModel Namespace

Provides classes and interfaces for interacting with the Windows application model, including app lifecycle management, package information, and system services.

Classes

Core Classes

Other Classes

Interfaces

Core Interfaces

Other Interfaces

Enums

App Class

Represents the current application.

Remarks

The App class is the entry point for a Universal Windows Platform (UWP) application. It handles application lifecycle events such as startup, activation, and suspension.

Methods

Method Description
OnActivated(IActivatedEventArgs args) Called when the application is activated.
OnBackgroundActivated(BackgroundActivatedEventArgs args) Called when the application is activated for a background task.
OnLaunched(LaunchActivatedEventArgs args) Called when the application is launched.
OnSuspending(object sender, SuspendingEventArgs e) Called when the application is suspended.
OnResuming(object sender, object e) Called when the application is resumed from suspension.

Package Class

Represents a deployed application package.

Properties

Property Type Description
Id PackageId Gets the unique identifier of the package.
InstalledLocation StorageFolder Gets the root folder of the installed package.
DisplayName String Gets the display name of the package.
PublisherDisplayName String Gets the display name of the package publisher.
Tip: Use PackageManager to get a list of installed packages.

See Also