Skip to main content
ProductLicense.ExpirationDate | expirationDate property

Applies to Windows and Windows Phone

Gets the current expiration date and time of the in-app product license.

Syntax


var expirationDate = productLicense.expirationDate;

public DateTimeOffset ExpirationDate { get; }

Public ReadOnly Property ExpirationDate As DateTimeOffset

public:
property DateTime ExpirationDate { 
   DateTime get();
}

Property value

Type: Date [JavaScript] | System.DateTimeOffset [.NET] | Windows::Foundation::DateTime [C++]

The date and time indicating when the in-app product license expires.

ValueMeaning
a valid date value

The license is active and expires on this date.

This occurs during the product's lifetime (the time the product can be used).

maxDate

The license is active and never expires.

This occurs if the product's lifetime is forever.

minDate

The license is not active.

 

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.ApplicationModel.Store
Windows::ApplicationModel::Store [C++]

Metadata

Windows.winmd

See also

ProductLicense