Cannot find IsLicensed property in Aspose APIs (C# .NET)

Hi,

I’m unable to find the IsLicensed property suggested by this page:

A code snippet is below, it works down to the test for islicensed:

String imaging_licence_file = @“C:\Program Files (x86)\Aspose\Aspose.Imaging for .NET\Aspose.Imaging.lic”;
Aspose.Imaging.License imaging_licence = new Aspose.Imaging.License();

if (!File.Exists(imaging_licence_file))
{
throw new FileNotFoundException(“Unable to find imaging license file”);
}

imaging_licence.SetLicense(imaging_licence_file);

if (imaging_license.IsLicensed)
{
// carry on with program
}
else
{
// terminate program
}

@kgclarion,

I have verified the issue shared by you and like to share that the concerned isLicensed Property has been removed from API by design. I suggest you to please visit the Removed APIs section of Aspose.Imaging for .NET 19.6 release notes.

Thank you for the reply.

What has replaced this property? How do I check that the license has been set properly?

@kgclarion,

There is no such replacement property as the property has been removed owing to security reasons.