usmanazizgroupdocs
3/15/2016 - 3:11 PM

ApplyLicense.cs

// For complete examples and data files, please go to https://github.com/groupdocsannotation/GroupDocs_Annotation_NET
/// <summary>
/// Applies product license
/// </summary>
public static void ApplyLicense()
{
    try
    {
        // initialize License
        License lic = new License();
        // apply license
        lic.SetLicense(LicenseFilePath);
    }
    catch (Exception exp)
    {
        Console.WriteLine(exp.Message);
    }
}