Skip to content

Latest commit

 

History

History
41 lines (25 loc) · 1.31 KB

package_installdate.md

File metadata and controls

41 lines (25 loc) · 1.31 KB
-api-id -api-type
P:Windows.ApplicationModel.Package.InstallDate
winrt property

Windows.ApplicationModel.Package.InstallDate

-description

Windows Phone only. Gets the date the application package was installed on the user's phone.

-property-value

The date the application package was installed on the user's phone.

-remarks

Windows Phone 8

If you acquire the Package instance by using the Windows.ApplicationModel.Package.Current property, getting the InstallDate property raises an InvalidCastException. If you want to get the InstallDate property, acquire the Package instance by using the Windows.Phone.Management.Deployment.InstallationManager.FindPackagesForCurrentPublisher method.

using Windows.ApplicationModel;

IEnumerable<Package> packages = Windows.Phone.Management.Deployment.InstallationManager.FindPackagesForCurrentPublisher();
Package package = packages.First();
DateTimeOffset packageInstallDate = package.InstallDate;

Windows 10

This API is not implemented and will throw an exception if called.

-examples

-see-also