public static void Run()
 {
     // ExStart:ApplyLicenseByPath
     Aspose.Note.License license = new Aspose.Note.License();
     license.SetLicense("Aspose.Note.lic");
     // ExEnd:ApplyLicenseByPath
 }
示例#2
0
        public static void Run()
        {
            // ExStart:ApplyLicenseUsingFileStream
            Aspose.Note.License license  = new Aspose.Note.License();
            FileStream          myStream = new FileStream("Aspose.Note.lic", FileMode.Open);

            license.SetLicense(myStream);
            // ExEnd:ApplyLicenseUsingFileStream
        }
示例#3
0
        public static void Run()
        {
            // ExStart:ApplyLicenseByEmbeddedResource
            // Instantiate the License class
            Aspose.Note.License license = new Aspose.Note.License();

            // Pass only the name of the license file embedded in the assembly
            license.SetLicense("Aspose.Note.lic");
            // ExEnd:ApplyLicenseByEmbeddedResource
        }
示例#4
0
        public static void Run()
        {
            // ExStart:ApplyLicenseByPath
            // ExFor:License
            // ExFor:License.SetLicense(System.String)
            // ExSummary:Shows how to load a license for Aspose.Note from a file.

            Aspose.Note.License license = new Aspose.Note.License();
            license.SetLicense("Aspose.Note.lic");

            // ExEnd:ApplyLicenseByPath
        }
示例#5
0
        public static void Run()
        {
            // ExStart:ApplyLicenseByEmbeddedResource
            // ExFor:License
            // ExFor:License.SetLicense(System.String)
            // ExSummary:Shows how to load a license for Aspose.Note from embedded file resource.

            // Instantiate the License class
            Aspose.Note.License license = new Aspose.Note.License();

            // Pass only the name of the license file embedded in the assembly
            license.SetLicense("Aspose.Note.lic");

            // ExEnd:ApplyLicenseByEmbeddedResource
        }
示例#6
0
        public static void Run()
        {
            // ExStart:ApplyLicenseUsingFileStream
            // ExFor:License
            // ExFor:License.SetLicense(System.IO.Stream)
            // ExSummary:Shows how to load a license for Aspose.Note from a stream.

            Aspose.Note.License license = new Aspose.Note.License();
            using (FileStream myStream = new FileStream("Aspose.Note.lic", FileMode.Open))
            {
                license.SetLicense(myStream);
            }

            // ExEnd:ApplyLicenseUsingFileStream
        }