How to check the license valid or not when call setLicense

Hello,

Is there any way to check the license is valid or not from which class in Aspose.Cells (.net) without writing to file to check the result?
I found that there are only methods like
void License.SetLicense(…)
but I want to know whether the license is valid or not when I call setLicense()

Thanks!

Best regards,
Mike

Hi,

Thanks for your question and using the Aspose.Cells.

The license file is a plain xml file, please open in a notepad and check the subscription expiry date.

If the date has passed, then your license is invalid otherwise your license is valid.