コード例 #1
0
        /// <summary>
        /// Applies GroupDocs.Comparison license using stream input
        /// </summary>
        public static void ApplyLicense(Stream licenseStream)
        {
            // Instantiate GroupDocs.Comparison license
            GroupDocs.Comparison.Common.License.License license = new GroupDocs.Comparison.Common.License.License();

            // Apply GroupDocs.Comparison license using license file stream
            license.SetLicense(licenseStream);
        }
コード例 #2
0
        //ExEnd:getComparison

        //ExStart:ApplyLicense
        /// <summary>
        /// Applies GroupDocs.Comparison license
        /// </summary>
        public static void ApplyLicense(string filepath)
        {
            // Instantiate GroupDocs.Comparison license
            GroupDocs.Comparison.Common.License.License license = new GroupDocs.Comparison.Common.License.License();

            // Apply GroupDocs.Comparison license using license path
            license.SetLicense(filepath);
        }